Skip to content

Commit

Permalink
Updates before merging @pboos changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgable committed Jul 18, 2012
2 parents 5e877a5 + 29700cd commit 2eb232c
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 @@ -132,12 +132,16 @@ class IrcBot extends Adapter

bot.addListener 'join', (channel, who) ->
console.log('%s has joined %s', who, channel)
user = self.createUser channel, who
self.receive new Robot.EnterMessage(user)

user = self.createUser channel, who
self.receive new Robot.EnterMessage(user)

bot.addListener 'part', (channel, who, reason) ->
console.log('%s has left %s: %s', who, channel, reason)
user = self.createUser channel, who
self.receive new Robot.LeaveMessage(user)

user = self.createUser channel, who
self.receive new Robot.LeaveMessage(user)
Expand Down

0 comments on commit 2eb232c

Please sign in to comment.