Comment 2 for bug 888280

Revision history for this message
lrm (lrmucha) wrote :

Indeed, I have managed to solve my problem with Lua patterns:

+bannickre 1 <[^%]]$> some reason
+bannickre 1 <[^1234].$> some reason
+bannickre 1 <[^SK]..$> some reason
+bannickre 1 <[^DA]...$> some reason
+bannickre 1 <[^%[]....$> some reason

and so forth (exceptions, etc...)

However, I've encountered anoter issue:
+banmsgre 10 <%>%>%>> some reason
<Hub> Messages that match "%" will be blocked (Level: 10) (Reason: %>%>> some reason) (Expires: never) (Bans for 10 minutes)

+banmsgre 10 <%>%>%>> some reason 0
 <Hub> Messages that match "%" won't be blocked anymore

So, it looks like its not posisble to use patterns that include the ">" delimiter, even with an escape character. Other tested symbols, like "<", "*" and "%s", do work.

Including POSIX regexes in the next release would be a great feature :).