This commit is contained in:
reality 2013-07-04 22:44:19 +00:00
parent 6c3f3119ff
commit b5d286b86e
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,6 @@ var commands = function(dbot) {
}
dbot.api.nickserv.getUserHost(event.server, banee, function(host) {
console.log(host);
// Add host record entry
if(host) {
if(!_.has(this.hosts, event.server)) this.hosts[event.server] = {};

View File

@ -72,8 +72,9 @@ var nickserv = function(dbot) {
if(match[1]) match[1] = match[1].replace('\*', '');
if(match && _.has(this.userStack, event.server) && _.has(this.userStack[event.server], match[1])) {
var callback = this.userStack[event.server][match[1]];
delete this.userStack[event.server][match[1]];
this.userStack[event.server][match[1]](match[3].trim());
callback(match[3].trim());
}
}
}.bind(this);