mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 20:22:39 +01:00
properly resolve unbans
This commit is contained in:
parent
d5b35a7b13
commit
b82a3e72ff
@ -91,11 +91,13 @@ var kick = function(dbot) {
|
||||
|
||||
this.internalAPI = {
|
||||
'addTempBan': function(server, banee, timeout) {
|
||||
dbot.api.users.resolveUser(server, dbot.config.name, function(err, bot) {
|
||||
dbot.api.timers.addTimeout(timeout, function() {
|
||||
this.api.networkUnban(server, banee, dbot.config.name, function(err) {});
|
||||
this.api.networkUnban(server, banee, bot, function(err) {});
|
||||
delete this.tempBans[server][banee];
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
}.bind(this));
|
||||
}.bind(this);
|
||||
};
|
||||
|
||||
this.listener = function(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user