forked from GitHub/dbot
create new date from serialised timeout
This commit is contained in:
parent
654a04810a
commit
dc6489767f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user