mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
remove ban from ban list when tempban expires [#500]
This commit is contained in:
parent
f6aebb61b4
commit
051ea2ca28
@ -79,6 +79,7 @@ var kick = function(dbot) {
|
|||||||
'addTempBan': function(server, banee, timeout) {
|
'addTempBan': function(server, banee, timeout) {
|
||||||
dbot.api.timers.addTimeout(timeout, function() {
|
dbot.api.timers.addTimeout(timeout, function() {
|
||||||
this.api.networkUnban(server, banee, dbot.config.name, function(err) {});
|
this.api.networkUnban(server, banee, dbot.config.name, function(err) {});
|
||||||
|
delete this.tempBans[server][banee];
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user