[DONE] Block messages with too many capital letters

Need a module converted from 3.2.x to UnrealIRCd 4? Or looking for a certain module? Ask here.

Moderators: Gottem, Supporters

Post Reply
Gottem
Posts: 180
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

[DONE] Block messages with too many capital letters

Post by Gottem » Tue Jan 03, 2017 8:47 pm

This module allows you to block messages with a lot of capital letters by means of an anticaps { } configuration block. It works for both channel and user private messages. ;] It disregards colour codes and control characters as well spaces while counting caps. U:Lines and opers are once again exempt. Also limits notices.

Config block:

Code: Select all

anticaps {
	capslimit 10;
	minlength 10;
};
Above example would set a limit of 10% capital letters, with a minimum message length of 10. In other words, if the message is less than 10 characters it won't even bother checking. You can also set it to 0 to effectively disable it. They default to 50% and 30 chars respectively.

Get it from git.
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

Gottem
Posts: 180
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: [DONE] Block messages with too many capital letters

Post by Gottem » Tue Jan 24, 2017 9:55 pm

--Update--

You can now also specify:

Code: Select all

anticaps {
   lowercase_it 1;
}
to lowercase the entire message if it exceeds the given caps limits. =] Grab the latest version from the git link in the OP.
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

floffy
Posts: 40
Joined: Tue May 05, 2015 9:55 pm

Re: [DONE] Block messages with too many capital letters

Post by floffy » Sun Jan 29, 2017 11:51 pm

Does have a Allready compile ? for my windows server

Gottem
Posts: 180
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: [DONE] Block messages with too many capital letters

Post by Gottem » Mon Jan 30, 2017 12:27 am

Uhh, no. I don't use Windows myself and I'm not even sure how modules work on that platform. =] Perhaps someone else can shed some light on it.
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

rcschaff
Posts: 53
Joined: Sun Jan 15, 2017 5:06 pm

Re: [DONE] Block messages with too many capital letters

Post by rcschaff » Sat Feb 04, 2017 6:29 am

m_anticaps.zip
Here is the .dll copy of the file. It is compiled and tested with the same version of Visual Studio as the developers. I don't guarantee that it will work, but it's worth a shot...

floffy
Posts: 40
Joined: Tue May 05, 2015 9:55 pm

Re: [DONE] Block messages with too many capital letters

Post by floffy » Sat Feb 04, 2017 4:05 pm

Thanks for the Antocaps , i will look and test it

Post Reply