Skip to content

Commit

Permalink
Merge pull request nandub#69 from suisho/notice_mode
Browse files Browse the repository at this point in the history
Add send notice mode
  • Loading branch information
jgable committed Mar 7, 2013
2 parents 2fb12f7 + 7944bf8 commit 411f15f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ class IrcBot extends Adapter
unless target
console.log "ERROR: Not sure who to send to. envelope=", envelope
return


speak = if process.env.HUBOT_IRC_SEND_NOTICE_MODE? then "notice" else "say"
for str in strings
@bot.say target, str
@bot[speak] target, str

notice: (envelope, strings...) ->
for str in strings
Expand Down

0 comments on commit 411f15f

Please sign in to comment.