From 42de44b4defefb81f1d6c29e4bac4ec5e62978be Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 21 Mar 2013 04:38:16 -0400 Subject: [PATCH] supress error on joining channel, due to dbot attempting to get info on own join --- modules/users/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/users/users.js b/modules/users/users.js index 2e6bbbb..ce11340 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -38,7 +38,7 @@ var users = function(dbot) { var knownUsers = this.getServerUsers(event.server); var nick = event.user; - if(event.action == 'JOIN') { + if(event.action == 'JOIN' && nick != dbot.config.name) { if(!_.has(knownUsers.channelUsers, event.channel.name)) { knownUsers.channelUsers[event.channel.name] = []; }