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