Skip to content

Commit

Permalink
Send messages to rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
smgt committed Jan 16, 2012
1 parent a1ee96d commit 43c2061
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 @@ -11,9 +11,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)

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

0 comments on commit 43c2061

Please sign in to comment.