From 62ef1d36e1be9f4de1586e58b9e6c0492a7152fd Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 12 Oct 2011 18:21:38 +0100 Subject: [PATCH] test --- modules/admin.js | 2 +- modules/modehate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); } },