mirror of
https://github.com/reality/dbot.git
synced 2025-02-09 02:54:22 +01:00
jawohl
This commit is contained in:
parent
6c3f3119ff
commit
b5d286b86e
@ -100,7 +100,6 @@ var commands = function(dbot) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dbot.api.nickserv.getUserHost(event.server, banee, function(host) {
|
dbot.api.nickserv.getUserHost(event.server, banee, function(host) {
|
||||||
console.log(host);
|
|
||||||
// Add host record entry
|
// Add host record entry
|
||||||
if(host) {
|
if(host) {
|
||||||
if(!_.has(this.hosts, event.server)) this.hosts[event.server] = {};
|
if(!_.has(this.hosts, event.server)) this.hosts[event.server] = {};
|
||||||
|
@ -72,8 +72,9 @@ var nickserv = function(dbot) {
|
|||||||
|
|
||||||
if(match[1]) match[1] = match[1].replace('\*', '');
|
if(match[1]) match[1] = match[1].replace('\*', '');
|
||||||
if(match && _.has(this.userStack, event.server) && _.has(this.userStack[event.server], match[1])) {
|
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]];
|
delete this.userStack[event.server][match[1]];
|
||||||
this.userStack[event.server][match[1]](match[3].trim());
|
callback(match[3].trim());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user