From 43c20615cb494c5192f8ea142aa29eb629fba887 Mon Sep 17 00:00:00 2001 From: Simon Gate Date: Mon, 16 Jan 2012 14:18:33 +0100 Subject: [PATCH] Send messages to rooms --- src/irc.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/irc.coffee b/src/irc.coffee index 8a82054..4d8b699 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -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