mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
modehate only on deop
This commit is contained in:
parent
7c7953b3a4
commit
0e18cd50c4
@ -3,15 +3,9 @@ var modehate = function(dbot) {
|
||||
|
||||
return {
|
||||
'listener': function(data, params) {
|
||||
console.log('caught modehate');
|
||||
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');
|
||||
//}
|
||||
if(dbot.db.modehate.include(data.user) && data.raw.indexOf('-o') != -1) {
|
||||
dbot.instance.send('KICK #42 ' + data.user + ' :gtfo');
|
||||
}
|
||||
},
|
||||
|
||||
'on': 'MODE'
|
||||
|
Loading…
Reference in New Issue
Block a user