dbot/modules/modehate.js
2011-10-16 20:00:04 +01:00

18 lines
391 B
JavaScript

var modehate = function(dbot) {
var dbot = dbot;
return {
'listener': function(data, params) {
if(dbot.db.modehate.include(data.user) && data.raw.indexOf('-o') != -1) {
dbot.instance.send('KICK #42 ' + data.user + ' :gtfo');
}
},
'on': 'MODE'
};
};
exports.fetch = function(dbot) {
return modehate(dbot);
};