2011-10-12 19:09:55 +02:00
|
|
|
var modehate = function(dbot) {
|
|
|
|
var dbot = dbot;
|
|
|
|
|
|
|
|
return {
|
2011-10-15 20:48:54 +02:00
|
|
|
'listener': function(data, params) {
|
2011-10-16 21:00:04 +02:00
|
|
|
if(dbot.db.modehate.include(data.user) && data.raw.indexOf('-o') != -1) {
|
2011-10-15 20:51:58 +02:00
|
|
|
dbot.instance.send('KICK #42 ' + data.user + ' :gtfo');
|
|
|
|
}
|
2011-10-12 19:09:55 +02:00
|
|
|
},
|
|
|
|
|
2011-10-12 22:25:42 +02:00
|
|
|
'on': 'MODE'
|
2011-10-12 19:09:55 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.fetch = function(dbot) {
|
|
|
|
return modehate(dbot);
|
|
|
|
};
|