From 051ea2ca28286af06a8903cbc20f9d300595d70c Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 11 Jun 2013 17:57:04 +0000 Subject: [PATCH] remove ban from ban list when tempban expires [#500] --- modules/kick/kick.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/kick/kick.js b/modules/kick/kick.js index 5b11c6e..6197b0d 100644 --- a/modules/kick/kick.js +++ b/modules/kick/kick.js @@ -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) };