forked from GitHub/dbot
modehate only on deop
This commit is contained in:
parent
7c7953b3a4
commit
0e18cd50c4
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user