mirror of
https://github.com/reality/dbot.git
synced 2025-01-25 19:44:22 +01:00
modehate kick
This commit is contained in:
parent
a4a8471ab5
commit
8f48ce5289
@ -8,6 +8,17 @@ var kick = function(dbot) {
|
|||||||
dbot.say(data.channel, 'Thou shalt not kick ' + dbot.name);
|
dbot.say(data.channel, 'Thou shalt not kick ' + dbot.name);
|
||||||
dbot.db.kicks[dbot.name] += 1;
|
dbot.db.kicks[dbot.name] += 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if(dbot.db.modehate.include(data.user)) {
|
||||||
|
dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :gtfo (MODEHATE)');
|
||||||
|
|
||||||
|
if(!dbot.db.kicks.hasOwnProperty(data.user)) {
|
||||||
|
dbot.db.kicks[data.user] = 1;
|
||||||
|
} else {
|
||||||
|
dbot.db.kicks[data.user] += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(!dbot.db.kicks.hasOwnProperty(data.kickee)) {
|
if(!dbot.db.kicks.hasOwnProperty(data.kickee)) {
|
||||||
dbot.db.kicks[data.kickee] = 1;
|
dbot.db.kicks[data.kickee] = 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user