3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

removedebug

This commit is contained in:
reality 2013-08-24 18:59:43 +00:00
parent e56eaa7a9f
commit 2263f884f0

View File

@ -137,15 +137,11 @@ var users = function(dbot) {
if(_.has(this.userCache, event.server) && _.has(this.userCache[event.server], event.user)) { if(_.has(this.userCache, event.server) && _.has(this.userCache[event.server], event.user)) {
this.api.getUser(this.userCache[event.server][event.user], checkCurrentNick); this.api.getUser(this.userCache[event.server][event.user], checkCurrentNick);
console.log('got cached user');
} else { } else {
this.api.resolveUser(event.server, event.user, function(user) { this.api.resolveUser(event.server, event.user, function(user) {
if(!user) { if(!user) {
this.internalAPI.createUser(event.server, this.internalAPI.createUser(event.server,
event.user, function (user) { event.user, checkCurrentNick);
this.userCache[event.server][user.currentNick] = user.id;
checkCurrentNick(user);
}.bind(this));
} else { } else {
checkCurrentNick(user); checkCurrentNick(user);
} }
@ -193,7 +189,6 @@ var users = function(dbot) {
}.bind(this); }.bind(this);
if(event.user && event.channel && _.include(['JOIN', 'MODE', 'PRIVMSG'], event.action)) { if(event.user && event.channel && _.include(['JOIN', 'MODE', 'PRIVMSG'], event.action)) {
if(event.action == 'JOIN') console.log(event);
checkChannel(function(channel) { checkChannel(function(channel) {
event.rChannel = channel; event.rChannel = channel;
checkUser(function(user) { checkUser(function(user) {