From 7c7953b3a46016b4849b21f21c4d953ab69d625a Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 15 Oct 2011 19:48:54 +0100 Subject: [PATCH] debug --- modules/modehate.js | 13 +++++++++---- modules/quotes.js | 1 - 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/modehate.js b/modules/modehate.js index 2f2421a..f866d49 100644 --- a/modules/modehate.js +++ b/modules/modehate.js @@ -2,11 +2,16 @@ var modehate = function(dbot) { var dbot = dbot; return { - 'listener': function(data) { + 'listener': function(data, params) { console.log('caught modehate'); - if(dbot.db.modehate.include(data.user)) { - dbot.instance.send('KICK #42 ' + data.user + ' :gtfo'); - } + console.log(params[0]); + console.log(params[1]); + console.log(params[2]); + console.log(params[3]); + console.log(params[4]); + //if(dbot.db.modehate.include(data.user)) { + //dbot.instance.send('KICK #42 ' + data.user + ' :gtfo'); + //} }, 'on': 'MODE' diff --git a/modules/quotes.js b/modules/quotes.js index b4977dc..70ea9d3 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -37,7 +37,6 @@ var quotes = function(dbot) { dbot.say(data.channel, params[1] + ' (' + params[2] + '): ' + matches.random() + ' [' + matches.length + ' results]'); } } - } },