From 09893087f0afc788491c522de7d87f8c3603e74e Mon Sep 17 00:00:00 2001 From: James Smith Date: Wed, 20 Feb 2013 16:59:40 +0000 Subject: [PATCH] clear room when user leaves the channel --- src/irc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc.coffee b/src/irc.coffee index 277e313..b622e86 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -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) ->