Page 1 of 1

[DONE] Block messages with too many capital letters

Posted: Tue Jan 03, 2017 8:47 pm
by Gottem
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.

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

Posted: Tue Jan 24, 2017 9:55 pm
by Gottem
--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.

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

Posted: Sun Jan 29, 2017 11:51 pm
by floffy
Does have a Allready compile ? for my windows server

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

Posted: Mon Jan 30, 2017 12:27 am
by Gottem
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.

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

Posted: Sat Feb 04, 2017 6:29 am
by rcschaff
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...

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

Posted: Sat Feb 04, 2017 4:05 pm
by floffy
Thanks for the Antocaps , i will look and test it