diff --git a/modules/kick/kick.js b/modules/kick/kick.js index 97e1f5c..caea0f3 100644 --- a/modules/kick/kick.js +++ b/modules/kick/kick.js @@ -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;