3
0
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:
reality 2013-06-11 17:57:04 +00:00
parent f6aebb61b4
commit 051ea2ca28

View File

@ -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)
}; };