Badwords Execution Order
Posted: Wed Nov 16, 2005 6:30 am
Pardon my use of proper proigramming terms, but how does the ircd interpret the badwords block? Is it top to bottom, bottom to top, or some other method?
This is the scenario:
I want to wild card *shit* but wanted certain words such as "shitzu" to be allowed (we have a host that talks about his dog).
How strange and embarrassing if he said in the G-Rated channel:
I hoped the ircd would read the first line, see the match, and stop looking, like a router access-list. Instead, it prefered the wildcarded block, since the wildcarded block replaced the curse with *bleep*
Does any one have any insight or advice?
This is the scenario:
I want to wild card *shit* but wanted certain words such as "shitzu" to be allowed (we have a host that talks about his dog).
How strange and embarrassing if he said in the G-Rated channel:
And it comes out as:I have the sweetest little shitzu. He's cute and cuddly!
So I put the *shit* badword filter at the bottom on the list of blocks (I modified the file: badwords.channel.conf that comes with the UnrealIRCd distribution) and put at the top of the list the block:I have the sweetest little *bleep*. He's cute and cuddly!
Code: Select all
badword channel { word "shitzu"; replace "shitzu"; };Does any one have any insight or advice?