From 654a04810ac2a0f0e93ba24942730e9cee313c3d Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 10 Jun 2013 17:10:57 +0000 Subject: [PATCH] reload persistence for tempban [#495] --- modules/kick/kick.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/kick/kick.js b/modules/kick/kick.js index 4699728..ff15f3d 100644 --- a/modules/kick/kick.js +++ b/modules/kick/kick.js @@ -111,6 +111,14 @@ var kick = function(dbot) { } }.bind(this); this.on = 'KICK'; + + this.onLoad = function() { + _.each(this.tempBans, function(bans, server) { + _.each(bans, function(timeout, nick) { + this.internalAPI.addTempBan(server, nick, timeout); + }, this); + }, this); + }.bind(this); }; exports.fetch = function(dbot) {