3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

modehate only on deop

This commit is contained in:
Luke Slater 2011-10-15 19:51:58 +01:00
parent 7c7953b3a4
commit 0e18cd50c4

View File

@ -3,15 +3,9 @@ var modehate = function(dbot) {
return { return {
'listener': function(data, params) { 'listener': function(data, params) {
console.log('caught modehate'); if(dbot.db.modehate.include(data.user) && data.raw.indexOf('-o') != -1) {
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'