forked from GitHub/dbot
reload persistence for tempban [#495]
This commit is contained in:
parent
1c84837611
commit
654a04810a
@ -111,6 +111,14 @@ var kick = function(dbot) {
|
|||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
this.on = 'KICK';
|
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) {
|
exports.fetch = function(dbot) {
|
||||||
|
Loading…
Reference in New Issue
Block a user