Skip to content

Commit

Permalink
Merge pull request nandub#13 from simon/irc-room
Browse files Browse the repository at this point in the history
Send messages to rooms
  • Loading branch information
jgable committed Jul 18, 2012
2 parents 2eb232c + 43c2061 commit c730c7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ class IrcBot extends Adapter
if user.room
console.log "#{user.room} #{str}"
@bot.say(user.room, str)
else
else if user.name
console.log "#{user.name} #{str}"
@bot.say(user.name, str)
else
console.log "#{user} #{str}"
@bot.say(user, str)

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

0 comments on commit c730c7e

Please sign in to comment.