3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00

oh it was that easy lol

This commit is contained in:
reality 2013-10-20 16:37:46 +00:00
parent e40a10dbdc
commit a2cb958b73

View File

@ -12,12 +12,6 @@ var nickserv = function(dbot) {
if(!_.has(this.authStack, server)) this.authStack[server] = {};
this.authStack[server][nick] = callback;
dbot.say(server, nickserv, infoCommand + ' ' + nick + ' *');
setTimeout(function() {
if(_.has(this.userStack[server], nick)) {
delete this.authStack[server][nick];
callback(false);
}
}, 4000);
},
'getUserHost': function(server, nick, callback) {
@ -83,7 +77,7 @@ var nickserv = function(dbot) {
if(info[3] == acceptableState) {
this.authStack[event.server][info[1]](true, info[2]);
} else {
this.authStack[event.server][info[2]](false, info[2]);
this.authStack[event.server][info[1]](false, info[2]);
}
}
}