From a2cb958b73da3cba0909547e6daadf6cc98e469f Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 20 Oct 2013 16:37:46 +0000 Subject: [PATCH] oh it was that easy lol --- modules/nickserv/nickserv.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/nickserv/nickserv.js b/modules/nickserv/nickserv.js index d7cb267..0511a83 100644 --- a/modules/nickserv/nickserv.js +++ b/modules/nickserv/nickserv.js @@ -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]); } } }