View Single Post
almostagreatcoder
Member
Join Date: Oct 2015
Old 12-21-2016 , 01:23   Re: [ANY] Universal Chat Filter (Version 1.0.0, 2016-10-20)
Reply With Quote #22

Quote:
Originally Posted by blackhawk74 View Post
Another question here. I have a section setup for dealing with racism. However, if a person types in a specified word twice in one sentence, it automatically skips action #1 and goes straight to #2. How can I avoid that?

Code:
	"limit1"	1
	"action1"	"sm_psay #userid \"Please do not use racism here!\""
	"limit2"	2
	"action2"	"sm_psay #userid \"If you continue using racist language here, you will be banned on your next offense!\""
	"limit3"	3
	"action3"	"sm_ban #userid 4320 Auto-banned for repeated racism"
Mode is 4, penalty is set to 1.
I'm not quite sure, since I couldn't test it - but using mode 3 should do the trick.

Quote:
Also, completely unrelated, is it possible to add cooldown as an option? For example, cooldown for an action or replacement? Closest I see so far is probability.
That's an interesting idea and could totally be possible. But what would you expect to happen if someone triggers a certain action with the cooldown time not passed yet. Nothing? (Which would be odd if you try to prevent some unwanted behaviour in the chat.)
almostagreatcoder is offline