I don't know if this is a bug, or if it's something I'm doing wrong, but this is the coding I have in my extension:
Code: Select all
SFSBannedUserManager bannedUM = new SFSBannedUserManager();
IWordFilter wF = new SFSWordFilter(bannedUM);
trace("Is it active? - " + wF.isActive());
The above coding traces this statement:
Is it active? - false
And this is what I currently have in my zone config file:
Code: Select all
<wordsFilter active="true">
<useWarnings>false</useWarnings>
<warningsBeforeKick>1</warningsBeforeKick>
<kicksBeforeBan>1</kicksBeforeBan>
<banDuration>1440</banDuration>
<maxBadWordsPerMessage>1</maxBadWordsPerMessage>
<kicksBeforeBanMinutes>5</kicksBeforeBanMinutes>
<secondsBeforeBanOrKick>0</secondsBeforeBanOrKick>
<warningMessage>Stop swearing or you will be banned</warningMessage>
<kickMessage>Swearing not allowed: you are being kicked</kickMessage>
<banMessage>Too much swearing: you are banned</banMessage>
<wordsFile>config/wordsFile.txt</wordsFile><filterMode>BLACKLIST</filterMode>
<banMode>NAME</banMode>
<hideBadWordWithCharacter>*</hideBadWordWithCharacter>
</wordsFilter>
In addition to this config, I have also tried changing some of the options, such as trying the <filterMode> as "WHITELIST" without the quotes.
Is there something I am doing wrong so that the word filter isn't being activated? I don't get any errors on the server.