Pwn9 / PwnFilter

PwnFilter is a JAVA Plugin for Bukkit, a multiplayer server API for the game Minecraft. Pwnfilter implements Regular Expressions created in a user defined "rules.txt" as an in-game chat filter to remove profane language, spam and caps, for fun and as an effective command alias creator.
GNU General Public License v3.0
15 stars 25 forks source link

This command : /?, generate an error. #12

Closed fhebuterne closed 9 years ago

fhebuterne commented 9 years ago

My error when i write /? in minecraft chat : http://pastebin.com/rFe9Ntu9

DreamPhreak commented 9 years ago

Have you tried \? instead of /?

ptoal commented 9 years ago

Sorry for taking so long to get back to this. Did you resolve the problem? This looks like an error in one of your conditions in your rules file. Eg:

match blah
ignore string ?
then whatever

This isn't a bug in PwnFilter, per se, though it would be nice if we had a more friendly handling for unescaped regex in matches like this.

If you're still tracking this, please let me know, otherwise, I will close it in a week or so.

ptoal commented 9 years ago

I see... The problem is actually in one of our sample files:

match ^/\?
rule A4
require command ?
then deny

I have fixed it by escaping the ? in the "require command" line.