From dc6489767f33326cd3f0eaa099da9076ca472553 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 10 Jun 2013 17:20:58 +0000 Subject: [PATCH] create new date from serialised timeout --- modules/kick/kick.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/kick/kick.js b/modules/kick/kick.js index ff15f3d..5b11c6e 100644 --- a/modules/kick/kick.js +++ b/modules/kick/kick.js @@ -115,6 +115,7 @@ var kick = function(dbot) { this.onLoad = function() { _.each(this.tempBans, function(bans, server) { _.each(bans, function(timeout, nick) { + timeout = new Date(timeout); this.internalAPI.addTempBan(server, nick, timeout); }, this); }, this);