Skip to content

Commit

Permalink
Added robot.leave support
Browse files Browse the repository at this point in the history
  • Loading branch information
pboos committed Jun 8, 2012
1 parent dc0b0e6 commit 29700cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class IrcBot extends Adapter

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)

bot.addListener 'kick', (channel, who, _by, reason) ->
console.log('%s was kicked from %s by %s: %s', who, channel, _by, reason)
Expand Down

0 comments on commit 29700cd

Please sign in to comment.