forked from GitHub/dbot
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