3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-18 08:32:42 +01:00

create new date from serialised timeout

This commit is contained in:
reality 2013-06-10 17:20:58 +00:00
parent 654a04810a
commit dc6489767f

View File

@ -115,6 +115,7 @@ var kick = function(dbot) {
this.onLoad = function() { this.onLoad = function() {
_.each(this.tempBans, function(bans, server) { _.each(this.tempBans, function(bans, server) {
_.each(bans, function(timeout, nick) { _.each(bans, function(timeout, nick) {
timeout = new Date(timeout);
this.internalAPI.addTempBan(server, nick, timeout); this.internalAPI.addTempBan(server, nick, timeout);
}, this); }, this);
}, this); }, this);