Skip to content

Commit

Permalink
When entering a channel, invoke self.createUser for all users
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri Bahumi committed Jan 22, 2013
1 parent 48cc137 commit 77584e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 77584e0

Please sign in to comment.