From 77584e057a7bbe5c2234f8c35f5588126acbd80b Mon Sep 17 00:00:00 2001 From: Omri Bahumi Date: Tue, 22 Jan 2013 15:51:10 +0200 Subject: [PATCH] When entering a channel, invoke self.createUser for all users --- src/irc.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/irc.coffee b/src/irc.coffee index 1cd6be3..65f33fc 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -136,6 +136,10 @@ class IrcBot extends Adapter for room in options.rooms @join room + bot.addListener 'names', (channel, nicks) -> + for nick of nicks + self.createUser channel, nick + bot.addListener 'message', (from, to, message) -> console.log "From #{from} to #{to}: #{message}"