3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00
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;
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'

View File

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