2011-10-12 19:09:55 +02:00
|
|
|
var modehate = function(dbot) {
|
|
|
|
var dbot = dbot;
|
|
|
|
|
|
|
|
return {
|
|
|
|
'listener': function(data) {
|
2011-10-12 22:29:05 +02:00
|
|
|
console.log('caught modehate');
|
2011-10-12 19:09:55 +02:00
|
|
|
if(dbot.db.modehate.include(data.user)) {
|
2011-10-12 22:33:17 +02:00
|
|
|
dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :gtfo');
|
|
|
|
dbot.say(data.channel,'KICK ' + data.channel + ' ' + 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);
|
|
|
|
};
|