This commit is contained in:
Luke Slater 2011-10-12 18:09:55 +01:00
parent 50e7b46047
commit 79bbc034c4
2 changed files with 21 additions and 0 deletions

View File

@ -61,6 +61,10 @@ var adminCommands = function(dbot) {
} else {
dbot.say(data.channel, 'It appears ' + params[1] + 'wasn\'t banned from that command, you fool.');
}
},
'modehate': function(data, params) {
dbot.db.modehate.push(params[2]);
}
};

17
modules/modehate.js Normal file
View File

@ -0,0 +1,17 @@
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);
};