This commit is contained in:
Luke Slater 2014-10-03 20:54:30 +00:00
parent 9ed4c582e2
commit 5289efc72c

View File

@ -95,7 +95,6 @@ var atheme = function(dbot) {
delete allFlags[u];
}
});
async.each(_.keys(hostMasks), function(hostMask, done) {
this.api.getVHosts(event.server, hostMask.split('@')[1], function(err, users) {
_.each(users, function(user) {
@ -103,12 +102,8 @@ var atheme = function(dbot) {
});
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() {
console.log('DONE');
_.each(this.flagStack[event.server][end[1]].callbacks, function(callback) {
callback(null, this.flagStack[event.server][end[1]].flags);
}.bind(this));