Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Made blockcaps a per-channel setting. #473

Open
wants to merge 3 commits into
from

Conversation

Projects
None yet
4 participants
Contributor

Shawn-Smith commented Apr 5, 2013

This changes the m_blockcaps from a config-defined, network-wide setting to a per-channel setting defined with mode parameters.

The new syntax is +B percent-to-match:minimum-length
Example: +B 50:10 will kick for anything over 10 characters that contains 50% or more caps.

You can also specify ~ or * for blocking or banning in the same manner as m_messageflood

Example: +B *55:10 will ban for anything over 10 characters that contains 55% or more caps.
Example: +B ~55:10 will block anything over 10 characters that contains 55% or more caps.

The current m_blockcaps module was moved to m_blockcaps_compat so networks that still have 2.0 servers linked may use that.

Requested in: #463

westor7 commented Apr 5, 2013

OMG this is A PERFECT work very very very well done from me man 👍 !!!!

  • Thanks!

westor7 commented Apr 5, 2013

Also one recommentation for this to make it work like +f
e.g: /mode #chan +B 40:100
this will kick the user
or e.g: /mode #chan +B *40:100
this will kick ban the user
and as it is now e.g: /mode #chan +B ~40:100
this will only block the message

  • Thanks!
Contributor

Shawn-Smith commented Apr 5, 2013

@westor7 I don't have time to code more today. I'll look into that Monday or Tuesday next week.

westor7 commented Apr 5, 2013

sure man take your time :)

Contributor

Shawn-Smith commented Apr 10, 2013

@westor7 You can now use ~ and * in the same manner as m_messageflood, changed the default behavior from blocking to kicking also.

westor7 commented Apr 10, 2013

OHHHH man thaks a lot very good!!!!!!!!!! i love inspircd coders!!!! 👍

  • THanks!
Owner

attilamolnar commented May 21, 2013

Can one of the admins verify this patch?

Shawn-Smith added some commits Apr 5, 2013

@Shawn-Smith Shawn-Smith Made the settings for m_blockcaps a per-channel setting instead of co…
…nfig defined.

Moved the current m_blockcaps module to m_blockcaps_compat for networks with 2.0 servers still linked.
Updated config files to reflect the new chmode B setting.
Syntax for mode: +B percent-of-caps:minimum-text-length
Requested in #463
c8126ae
@Shawn-Smith Shawn-Smith You can now block (~) or ban (*) with m_blockcaps
Kicks my default and in combination with bans.
Same functionality as m_messageflood
75654e7
@Shawn-Smith Shawn-Smith Updated helpop files
0871c1c

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment