Skip to content

Commit

Permalink
clear room when user leaves the channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Feb 20, 2013
1 parent 57ec2ec commit 0989308
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 0989308

Please sign in to comment.