repeat block
repeat block
Hi,
can anyone code a module that any repeat blocked by Server?
[12:36] <nick> hehhehhehhehehh
[12:36] <nick> hehhehhehhehehh
*** Message was blocked for repeating
Can that anyone code this module pls pm me, i want to pay 20$ for it via paypal.
Thanks!
can anyone code a module that any repeat blocked by Server?
[12:36] <nick> hehhehhehhehehh
[12:36] <nick> hehhehhehhehehh
*** Message was blocked for repeating
Can that anyone code this module pls pm me, i want to pay 20$ for it via paypal.
Thanks!
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
/spamfilter add cpnNq block repeating (..+)\1{4}
This will block anything that contains something 2 or more characters repeated 4 times. Such as "hehhehhehheh" or "qqqqqqqq"
NOTE: It usually isn't a good thing to block text just because. Users should be able to say whatever they want, unless the channel/user specifically does not want certain things (such as using +G)
This will block anything that contains something 2 or more characters repeated 4 times. Such as "hehhehhehheh" or "qqqqqqqq"
NOTE: It usually isn't a good thing to block text just because. Users should be able to say whatever they want, unless the channel/user specifically does not want certain things (such as using +G)
He means repeating the whole message.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Btw, it's really hard to fight against this kind of abusers:
In my opinion here is 1) flood (can be stopped via +f) 2) repeating, that can't be stopped/even detected with bots like EggDrop. So, an idea to this module coder(s) - before comparing strings - remove any spec. characters
P.S. after that users will be able to flood with "............"-style text ;)
Code: Select all
[12:36] <nick> hehhehhehhehehh.
[12:36] <nick> hehhehhehhehehh..
[12:36] <nick> hehhehhehhehehh...
[12:36] <nick> hehhehhehhehehh....
P.S. after that users will be able to flood with "............"-style text ;)
(...+){3,}
That will hit your case, and probably a bunch more. I dont think it will have too many false positives. If it does, add .s (to make the pattern that is repeated longer) or increase the 3 (to require more repeats)
That will hit your case, and probably a bunch more. I dont think it will have too many false positives. If it does, add .s (to make the pattern that is repeated longer) or increase the 3 (to require more repeats)
Why the hell can't my signature be empty?
"Your message contains too few characters."
"Your message contains too few characters."
If you're using anope just set a bot (from botserv) to join the channel. Then type /bs help kick. You can then configure the bot to kick/ban users for things like this
-BotServ- Note: access to this command is controlled by the
-BotServ- level SET.
-BotServ- Syntax: KICK channel option parameters
-BotServ-
-BotServ- Configures bot kickers. option can be one of:
-BotServ-
-BotServ- BOLDS Sets if the bot kicks bolds
-BotServ- BADWORDS Sets if the bot kicks bad words
-BotServ- CAPS Sets if the bot kicks caps
-BotServ- COLORS Sets if the bot kicks colors
-BotServ- FLOOD Sets if the bot kicks flooding users
-BotServ- REPEAT Sets if the bot kicks users who repeat
-BotServ- themselves
-BotServ- REVERSES Sets if the bot kicks reverses
-BotServ- UNDERLINES Sets if the bot kicks underlines
-BotServ-
-BotServ- Type /msg BotServ HELP KICK option for more information
-BotServ- on a specific option.
-BotServ- Syntax: KICK #channel REPEAT {ON|OFF} [ttb [num]]
-BotServ- Sets the repeat kicker on or off. When enabled, this
-BotServ- option tells the bot to kick users who are repeating
-BotServ- themselves num times (if num is not given, it
-BotServ- defaults to 3).
-BotServ- ttb is the number of times an user can be kicked
-BotServ- before it get banned. Don't give ttb to disable
-BotServ- the ban system once activated.
-BotServ- Note: access to this command is controlled by the
-BotServ- level SET.
-BotServ- Syntax: KICK channel option parameters
-BotServ-
-BotServ- Configures bot kickers. option can be one of:
-BotServ-
-BotServ- BOLDS Sets if the bot kicks bolds
-BotServ- BADWORDS Sets if the bot kicks bad words
-BotServ- CAPS Sets if the bot kicks caps
-BotServ- COLORS Sets if the bot kicks colors
-BotServ- FLOOD Sets if the bot kicks flooding users
-BotServ- REPEAT Sets if the bot kicks users who repeat
-BotServ- themselves
-BotServ- REVERSES Sets if the bot kicks reverses
-BotServ- UNDERLINES Sets if the bot kicks underlines
-BotServ-
-BotServ- Type /msg BotServ HELP KICK option for more information
-BotServ- on a specific option.
-BotServ- Syntax: KICK #channel REPEAT {ON|OFF} [ttb [num]]
-BotServ- Sets the repeat kicker on or off. When enabled, this
-BotServ- option tells the bot to kick users who are repeating
-BotServ- themselves num times (if num is not given, it
-BotServ- defaults to 3).
-BotServ- ttb is the number of times an user can be kicked
-BotServ- before it get banned. Don't give ttb to disable
-BotServ- the ban system once activated.
Jason I don't think they were wanting the spamfilter for repeating on the same line. I think they were asking about multiple lines being repeated. IE pressing the up key and just doing that repeatedly to flood the channel. That's why I posted the botserv stuff. If you're running Anope you can configure various options for botserv to automatically kick users.
Correct. As I tried to tell Jason on post #3.
Blocking repeats of whole messages doesn't require any modification of ircd source either, inmean. You would need to store the last x messages to that channel (possibly from a given user, possibly not) and check to see if they match y times, if so, block.
It would however be expensive, both RAM wise and CPU wise to do so.. though I suppose you could hash the lines to lower RAM impact, at some expense to CPU.
Blocking repeats of whole messages doesn't require any modification of ircd source either, inmean. You would need to store the last x messages to that channel (possibly from a given user, possibly not) and check to see if they match y times, if so, block.
It would however be expensive, both RAM wise and CPU wise to do so.. though I suppose you could hash the lines to lower RAM impact, at some expense to CPU.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Re: repeat block
Im looking for a repeat filter, working on a complete line. Can someone provide this, as im sorry to say, but ive no idea how to do so. I would appreciate that very, very much