forked from GitHub/dbot
blah
This commit is contained in:
parent
9ed4c582e2
commit
5289efc72c
@ -95,25 +95,20 @@ var atheme = function(dbot) {
|
|||||||
delete allFlags[u];
|
delete allFlags[u];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
async.each(_.keys(hostMasks), function(hostMask, done) {
|
||||||
async.each(_.keys(hostMasks), function(hostMask, done) {
|
|
||||||
this.api.getVHosts(event.server, hostMask.split('@')[1], function(err, users) {
|
this.api.getVHosts(event.server, hostMask.split('@')[1], function(err, users) {
|
||||||
_.each(users, function(user) {
|
_.each(users, function(user) {
|
||||||
allFlags[user] = hostMasks[hostMask];
|
allFlags[user] = hostMasks[hostMask];
|
||||||
});
|
});
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
done();
|
|
||||||
});
|
|
||||||
}.bind(this), function() {
|
|
||||||
_.each(this.flagStack[event.server][end[1]].callbacks, function(callback) {
|
|
||||||
callback(null, this.flagStack[event.server][end[1]].flags);
|
|
||||||
}.bind(this), function() {
|
}.bind(this), function() {
|
||||||
|
console.log('DONE');
|
||||||
_.each(this.flagStack[event.server][end[1]].callbacks, function(callback) {
|
_.each(this.flagStack[event.server][end[1]].callbacks, function(callback) {
|
||||||
callback(null, this.flagStack[event.server][end[1]].flags);
|
callback(null, this.flagStack[event.server][end[1]].flags);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
delete this.flagStack[event.server][end[1]];
|
delete this.flagStack[event.server][end[1]];
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(event.user === 'HostServ') {
|
} else if(event.user === 'HostServ') {
|
||||||
|
Loading…
Reference in New Issue
Block a user