diff --git a/modules/admin.js b/modules/admin.js index 86e718c..f9d42f0 100644 --- a/modules/admin.js +++ b/modules/admin.js @@ -64,7 +64,7 @@ var adminCommands = function(dbot) { }, 'modehate': function(data, params) { - dbot.db.modehate = [params[2]]; + dbot.db.modehate.push(params[2]); } }; diff --git a/modules/modehate.js b/modules/modehate.js index 9809d9e..7be5fd2 100644 --- a/modules/modehate.js +++ b/modules/modehate.js @@ -4,7 +4,7 @@ var modehate = function(dbot) { return { 'listener': function(data) { if(dbot.db.modehate.include(data.user)) { - dbot.instance.send('KICK', data.channel, data.user, 'gtfo') + dbot.instance.send('KICK', data.channel, data.user, 'gtfo'); } },