mirror of
https://github.com/reality/dbot.git
synced 2024-12-18 00:22:35 +01:00
ensure existence of hosts and tempBans
This commit is contained in:
parent
0649a2c0c9
commit
0088d88af6
@ -1,6 +1,8 @@
|
||||
var _ = require('underscore')._;
|
||||
|
||||
var kick = function(dbot) {
|
||||
if(!_.has(dbot.db, 'hosts')) dbot.db.hosts = {};
|
||||
if(!_.has(dbot.db, 'tempBans')) dbot.db.tempBans = {};
|
||||
this.hosts = dbot.db.hosts;
|
||||
this.tempBans = dbot.db.tempBans;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user