mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
whoops
This commit is contained in:
parent
83e5a35677
commit
d184a251e4
2
jsbot
2
jsbot
@ -1 +1 @@
|
|||||||
Subproject commit 606d0cdcddfda9d7328cfa0b65bb4a3079d77d9e
|
Subproject commit 139a3aad5a8b5c71dfe43fdc3f04d29d8b4104df
|
@ -51,7 +51,7 @@ var atheme = function(dbot) {
|
|||||||
});
|
});
|
||||||
delete this.hostStack[server][mask];
|
delete this.hostStack[server][mask];
|
||||||
}
|
}
|
||||||
}.bind(this), 2000);
|
}.bind(this), 5000);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -104,6 +104,7 @@ var atheme = function(dbot) {
|
|||||||
});
|
});
|
||||||
}.bind(this), function() {
|
}.bind(this), function() {
|
||||||
console.log('DONE');
|
console.log('DONE');
|
||||||
|
console.log(allFlags);
|
||||||
_.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));
|
||||||
|
@ -40,7 +40,7 @@ var api = function(dbot) {
|
|||||||
async.each(ops, function(op, done) {
|
async.each(ops, function(op, done) {
|
||||||
dbot.api.users.isOnline(server, cName, op, function(err, user, online) {
|
dbot.api.users.isOnline(server, cName, op, function(err, user, online) {
|
||||||
if(!err && !online) offlineOps[op] = user;
|
if(!err && !online) offlineOps[op] = user;
|
||||||
if(user.currentNick !== op) {
|
if(user && user.currentNick !== op) {
|
||||||
ops = _.without(ops, op);
|
ops = _.without(ops, op);
|
||||||
ops.push(user.currentNick);
|
ops.push(user.currentNick);
|
||||||
}
|
}
|
||||||
|
@ -66,6 +66,9 @@ var api = function(dbot) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
api['getUserAliases'].external = true;
|
||||||
|
api['getUserAliases'].extMap = [ 'id', 'callback' ];
|
||||||
|
|
||||||
return api;
|
return api;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user