3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-26 04:32:37 +01:00
This commit is contained in:
Luke Slater 2011-12-04 17:03:33 +00:00
parent 16354db060
commit d0b3b5252c

View File

@ -6,6 +6,7 @@ var modehate = function(dbot) {
console.log('THIS: ' + data.raw[0]); console.log('THIS: ' + data.raw[0]);
if(data.raw[0].indexOf('-oooo') != -1) { if(data.raw[0].indexOf('-oooo') != -1) {
console.log('test'); console.log('test');
console.log('KICK ' + data.channel + ' ' + data.user + ' :gtfo - mass deop protection');
dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :gtfo - mass deop protection'); dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :gtfo - mass deop protection');
} else if(dbot.db.modehate.include(data.user) && data.raw[0].indexOf('-o') != -1) { } else if(dbot.db.modehate.include(data.user) && data.raw[0].indexOf('-o') != -1) {
dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :gtfo'); dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :gtfo');