repeat block

These are old archives. They are kept for historic purposes only.
Post Reply
clean
Posts: 4
Joined: Sat Apr 29, 2006 10:35 am

repeat block

Post by clean »

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!
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

/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)
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

He means repeating the whole message.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
JanisB
Posts: 128
Joined: Fri Apr 22, 2005 9:05 am
Location: LV
Contact:

Post by JanisB »

Btw, it's really hard to fight against this kind of abusers:

Code: Select all

[12:36] <nick> hehhehhehhehehh.
[12:36] <nick> hehhehhehhehehh..
[12:36] <nick> hehhehhehhehehh...
[12:36] <nick> hehhehhehhehehh....
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 ;)
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

(...+){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)
Why the hell can't my signature be empty?
"Your message contains too few characters."
clean
Posts: 4
Joined: Sat Apr 29, 2006 10:35 am

Post by clean »

Ok thanks @ all
SpaceDoG
Posts: 301
Joined: Mon Feb 27, 2006 5:44 am
Contact:

Post by SpaceDoG »

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.
inmean
Posts: 4
Joined: Mon Mar 20, 2006 8:23 pm
Location: Phnom Penh
Contact:

Post by inmean »

BotServ can't really control that repeat.

Only module can do it, however to code that module we need to change ircd source code a bit.
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

inmean: The spamfilter I gave will prevent the repeating. This is probably why this topic has been inactive for nearly a month.
Why the hell can't my signature be empty?
"Your message contains too few characters."
SpaceDoG
Posts: 301
Joined: Mon Feb 27, 2006 5:44 am
Contact:

Post by SpaceDoG »

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.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

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.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Exactly.
inmean
Posts: 4
Joined: Mon Mar 20, 2006 8:23 pm
Location: Phnom Penh
Contact:

Post by inmean »

Yes i agreed, HASH is better
one4two
Posts: 9
Joined: Fri Sep 18, 2009 9:15 am

Re: repeat block

Post by one4two »

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 :)
Post Reply