mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +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) {
|
||||
dbot.api.timers.addTimeout(timeout, function() {
|
||||
this.api.networkUnban(server, banee, dbot.config.name, function(err) {});
|
||||
delete this.tempBans[server][banee];
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user