3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00
This commit is contained in:
Luke Slater 2014-09-15 21:19:41 +00:00
parent 83e5a35677
commit d184a251e4
4 changed files with 7 additions and 3 deletions

2
jsbot

@ -1 +1 @@
Subproject commit 606d0cdcddfda9d7328cfa0b65bb4a3079d77d9e
Subproject commit 139a3aad5a8b5c71dfe43fdc3f04d29d8b4104df

View File

@ -51,7 +51,7 @@ var atheme = function(dbot) {
});
delete this.hostStack[server][mask];
}
}.bind(this), 2000);
}.bind(this), 5000);
}
};
@ -104,6 +104,7 @@ var atheme = function(dbot) {
});
}.bind(this), function() {
console.log('DONE');
console.log(allFlags);
_.each(this.flagStack[event.server][end[1]].callbacks, function(callback) {
callback(null, this.flagStack[event.server][end[1]].flags);
}.bind(this));

View File

@ -40,7 +40,7 @@ var api = function(dbot) {
async.each(ops, function(op, done) {
dbot.api.users.isOnline(server, cName, op, function(err, user, online) {
if(!err && !online) offlineOps[op] = user;
if(user.currentNick !== op) {
if(user && user.currentNick !== op) {
ops = _.without(ops, op);
ops.push(user.currentNick);
}

View File

@ -66,6 +66,9 @@ var api = function(dbot) {
}
};
api['getUserAliases'].external = true;
api['getUserAliases'].extMap = [ 'id', 'callback' ];
return api;
};