2011-10-12 18:09:55 +01:00
|
|
|
var modehate = function(dbot) {
|
|
|
|
var dbot = dbot;
|
|
|
|
|
|
|
|
return {
|
2011-10-15 19:48:54 +01:00
|
|
|
'listener': function(data, params) {
|
2011-10-17 13:35:30 +01:00
|
|
|
if(data.raw[0].indexOf('-oooo') != -1) {
|
2011-12-04 17:05:23 +00:00
|
|
|
dbot.instance.send('KICK #42 ' + data.user + ' :gtfo - mass deop protection');
|
2011-10-17 13:35:30 +01:00
|
|
|
} else if(dbot.db.modehate.include(data.user) && data.raw[0].indexOf('-o') != -1) {
|
2011-10-24 13:54:42 +01:00
|
|
|
dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :gtfo');
|
2011-10-15 19:51:58 +01:00
|
|
|
}
|
2011-10-12 18:09:55 +01:00
|
|
|
},
|
|
|
|
|
2011-10-12 21:25:42 +01:00
|
|
|
'on': 'MODE'
|
2011-10-12 18:09:55 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.fetch = function(dbot) {
|
|
|
|
return modehate(dbot);
|
|
|
|
};
|