This commit is contained in:
Luke Slater 2011-10-15 19:48:54 +01:00
parent b8a55400bd
commit 7c7953b3a4
2 changed files with 9 additions and 5 deletions

View File

@ -2,11 +2,16 @@ var modehate = function(dbot) {
var dbot = dbot; var dbot = dbot;
return { return {
'listener': function(data) { 'listener': function(data, params) {
console.log('caught modehate'); console.log('caught modehate');
if(dbot.db.modehate.include(data.user)) { console.log(params[0]);
dbot.instance.send('KICK #42 ' + data.user + ' :gtfo'); 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' 'on': 'MODE'

View File

@ -37,7 +37,6 @@ var quotes = function(dbot) {
dbot.say(data.channel, params[1] + ' (' + params[2] + '): ' + matches.random() + ' [' + matches.length + ' results]'); dbot.say(data.channel, params[1] + ' (' + params[2] + '): ' + matches.random() + ' [' + matches.length + ' results]');
} }
} }
} }
}, },