Skip to content

Commit

Permalink
Add emote support
Browse files Browse the repository at this point in the history
  • Loading branch information
halkeye committed Jul 25, 2013
1 parent b50d74f commit f98db8e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ class IrcBot extends Adapter
for str in strings
@bot.say target, str

emote: (envelope, strings...) ->
# Use @notice if SEND_NOTICE_MODE is set
return @notice envelope, strings if process.env.HUBOT_IRC_SEND_NOTICE_MODE?

target = @_getTargetFromEnvelope envelope

unless target
return console.log "ERROR: Not sure who to send to. envelope=", envelope

for str in strings
@bot.action target, str

notice: (envelope, strings...) ->
target = @_getTargetFromEnvelope envelope

Expand Down

0 comments on commit f98db8e

Please sign in to comment.