From 2263f884f0f27b1b621678b862d301989b45db8f Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 24 Aug 2013 18:59:43 +0000 Subject: [PATCH] removedebug --- modules/users/users.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/users/users.js b/modules/users/users.js index b8de354..7750bab 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -137,15 +137,11 @@ var users = function(dbot) { if(_.has(this.userCache, event.server) && _.has(this.userCache[event.server], event.user)) { this.api.getUser(this.userCache[event.server][event.user], checkCurrentNick); - console.log('got cached user'); } else { this.api.resolveUser(event.server, event.user, function(user) { if(!user) { this.internalAPI.createUser(event.server, - event.user, function (user) { - this.userCache[event.server][user.currentNick] = user.id; - checkCurrentNick(user); - }.bind(this)); + event.user, checkCurrentNick); } else { checkCurrentNick(user); } @@ -193,7 +189,6 @@ var users = function(dbot) { }.bind(this); if(event.user && event.channel && _.include(['JOIN', 'MODE', 'PRIVMSG'], event.action)) { - if(event.action == 'JOIN') console.log(event); checkChannel(function(channel) { event.rChannel = channel; checkUser(function(user) {