3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-24 02:54:16 +01:00

reload persistence for tempban [#495]

This commit is contained in:
reality 2013-06-10 17:10:57 +00:00
parent 1c84837611
commit 654a04810a

View File

@ -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) {