Skip to content

Commit 91c79e3

Browse files
committedJan 22, 2013
Merge pull request nandub#58 from EverythingMe/master
When entering a channel, invoke self.createUser for all users
2 parents 27d391e + 77584e0 commit 91c79e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/irc.coffee

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ class IrcBot extends Adapter
136136
for room in options.rooms
137137
@join room
138138

139+
bot.addListener 'names', (channel, nicks) ->
140+
for nick of nicks
141+
self.createUser channel, nick
142+
139143
bot.addListener 'message', (from, to, message) ->
140144
console.log "From #{from} to #{to}: #{message}"
141145

0 commit comments

Comments
 (0)
Please sign in to comment.