Page 1 of 1
help please :D anti commands repetitions
Posted: Wed Dec 24, 2014 2:32 am
by manuti

some friend who helps me please:
I would like to activate an anti repetitions of commands example:
3 times for nickname that repeats the same command and to the third time that he punishes
the commands that they use very repeated are
/staff or
/ircops or
/nickserv identify and the user that it repeats it three times then receives a punishment
thanks for the help
spamfilter {
regex "/staff | /ircops | /nickserv identify";
target { user; private; channel; private-notice; channel-notice; };
reason "(Stop flooding services)";
action kill;
};
Re: help please :D anti commands repetitions
Posted: Wed Dec 24, 2014 5:18 pm
by katsklaw
The SPAM filter isn't designed for that either. The IRCd already has built in anti-flooding measures.
You will waste more resources checking how many times an user use a command than the user used executing them. You wishes here are completely illogical.
Secondly, the /ircops and /staff commands do not flood services. They have nothing to do with services at all.
My advice is for you to research what sendQ and recvQ is.
Re: help please :D anti commands repetitions
Posted: Thu Dec 25, 2014 12:45 am
by manuti
this configuration is correct ??
anti-flood {
nick-flood 4:50;
unknown-flood-bantime 1d;
unknown-flood-amount 600;
away-flood 5:60s;
};