SFSPRO_V :1.6.20
OS: linux ubuntu 20.04.
This error occurs when someone curses:
Code: Select all
jvm 1 | 02:00:27.816 - [ WARNING ] > User: ran (Censored) is being kicked. Reason: swearing.
jvm 1 | 02:00:27.816 - [ WARNING ] > Unexpected Exception: java.lang.NullPointerException
jvm 1 | java.lang.NullPointerException
jvm 1 | at it.gotoandplay.smartfoxserver.SmartFoxServer.addBannedUser(SmartFoxServer.java:2741)
jvm 1 | at it.gotoandplay.smartfoxserver.SmartFoxServer.addKickedUser(SmartFoxServer.java:2942)
jvm 1 | at it.gotoandplay.smartfoxserver.controllers.SystemHandler.applyBadWordFilter(SystemHandler.java:3980)
jvm 1 | at it.gotoandplay.smartfoxserver.controllers.SystemHandler.handlePublicMessage(SystemHandler.java:1365 )
jvm 1 | at it.gotoandplay.smartfoxserver.controllers.SystemHandler.processEvent(SystemHandler.java:275)
jvm 1 | at it.gotoandplay.smartfoxserver.controllers.SystemHandler.run(SystemHandler.java:168)
jvm 1 | at java.lang.Thread.run(Unknown Source)
jvm 1 | 02:01:32.848 - [ FINER ] > Removed badwords kick for ip-adr: "Censored"
The censorship of the curses works, but the part of the disconnection and blocking does not.
This is my setting on the server:
Code: Select all
<BadWordsFilter active="true">
<FilterMode>filter</FilterMode>
<StripCharacters><![CDATA[,.;:_!$%&/#*-+]]></StripCharacters>
<Warnings>true</Warnings>
<FilterRoomNames>true</FilterRoomNames>
<FilterUserNames>true</FilterUserNames>
<WarningsBeforeKick>1</WarningsBeforeKick>
<WarningMessage><![CDATA[No swearing!)]]></WarningMessage>
<KickMessage><![CDATA[You've been warned! No Swearing! Now you're kicked]]></KickMessage>
<BanMessage><![CDATA[YOU_BEEN_KICKED]]></BanMessage>
<BanAfter timeSpan="1">1</BanAfter>
<BadWordsList>
<!-- And the list of curses starts here -->
</BadWordsList>
</BadWordsFilter>
The messages are managed through the internal event of the extension (pubMsg)