Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nandub/hubot-irc
Browse files Browse the repository at this point in the history
  • Loading branch information
jgable committed Jul 18, 2012
2 parents f4b0f82 + c730c7e commit 182f145
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 182f145

Please sign in to comment.