Skip to content

Commit

Permalink
Merge pull request nandub#66 from theodi/master
Browse files Browse the repository at this point in the history
Clear user.room when a user leaves the channel
  • Loading branch information
jgable committed Feb 23, 2013
2 parents 57ec2ec + 0989308 commit abbc282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ 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
user = self.createUser '', who
self.receive new LeaveMessage(user)

bot.addListener 'kick', (channel, who, _by, reason) ->
Expand Down

0 comments on commit abbc282

Please sign in to comment.