Skip to content

Commit

Permalink
Pass reason to LeaveMessage.
Browse files Browse the repository at this point in the history
  • Loading branch information
take-cheeze committed May 23, 2014
1 parent 5677223 commit 5cf88ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,14 @@ class IrcBot extends Adapter
logger.info('%s has left %s: %s', who, channel, reason)
user = self.createUser '', who
user.room = channel
self.receive new LeaveMessage(user)
self.receive new LeaveMessage(user, reason)

bot.addListener 'quit', (who, reason, channels) ->
logger.info '%s has quit: %s (%s)', who, channels, reason
for ch in channels
user = self.createUser '', who
user.room = ch
self.receive new LeaveMessage user
self.receive new LeaveMessage(user, reason)

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

0 comments on commit 5cf88ab

Please sign in to comment.