View Single Post
kriz_cold
Junior Member
Join Date: Mar 2016
Location: Chile
Old 06-18-2017 , 14:39   Re: [ANY] Universal Chat Filter (Version 1.0.1, 2016-12-25)
Reply With Quote #31

Quote:
Originally Posted by almostagreatcoder View Post
Oh sorry for letting you wait so long! I haven't been active here for a while - but I will look into this in the next days.

OK, this one is a litte bit tough, because it leads to the question: what should happen, when a replacement exceeds the max. no. of characters? If the plugin would always ignore this very replacement rule, it would probably not be the expected behaviour (e.g. when you want to filter out bad language). So, I could try to implement this only for color flows: when the resulting string is too long, don't do anything. But due to the logic of replacements, this is not an easy thing to do. Will take some time... :cry:

First, changing "COLORFLOW" and "/COLORFLOW" with something short you will increase the text lenght limit, using something like "CLF" and "/CLF"

Also, you can add an option like:
"no limit" "1"
Code:
//I'm not sure how C++ and Pawn works, but the code must look like this
If (TEXT < textlimit - 7) // asuming textlimit is the default chat limit lenght and 7 the "CLF" + "/CLF" characters size
{continue}
kriz_cold is offline