3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 20:22:39 +01:00
dbot/modules/modehate.js

18 lines
353 B
JavaScript
Raw Normal View History

2011-10-12 19:09:55 +02:00
var modehate = function(dbot) {
var dbot = dbot;
return {
'listener': function(data) {
if(dbot.db.modehate.include(data.user)) {
dbot.instance.send('KICK', data.channel, data.user, 'gtfo')
}
},
on: 'MODE'
};
};
exports.fetch = function(dbot) {
return modehate(dbot);
};