Ge0rGedhelas: block multi line messages from strangers. Also pastebin links
ZashBother ejabberd devs about porting mod_firewall?
Ge0rGedhelas: migrate to prosody! 🤣
Holger> Code expressions are powerful, and allow unconstrained access to Prosody's internal environment.
This part will be non-trivial to port :-)
ZashJust include all of Prosody
HolgerAnd I'm not sure I'd go for Lua patterns rather than regular expressions. So I guess real-world rule sets wouldn't work unmodified.
HolgerThat said, I'm thinking about porting this as well.
ZashLua patterns are roughly a subset of regular expressions
ZashAnd probably is, in the language theory sense
ZashPeople tend to think of PCRE and similar when they hear "regular expressions"
HolgerWell you can't pipe them as-is into regex functions.
HolgerZash: So do I :-)
ZashA bunch would work if you s/%/\\/
ZashNotable exceptions are - which is like *? and %bxy which is ... not regular IIRC
HolgerYes I know them, I did quite a bit of Lua actually (before Prosody even existed) :-)
HolgerThey're just fine, I'm just unsure implementing them (or loading 'luerl' just for this purpose) would be worth it.
ZashPCRE is supposedly huge compared to the Lua pattern implementation
HolgerAbsolutely, but it's loaded anyway.
HolgerApart from that the syntax is probably more familiar to most admins.
HolgerThen again, my only goal in implementing this would be loading Georg's rules, so what do I care about admins.
samI feel like doing PCRE in a network firewall type situation is a bad idea; you're just going to end up with administrators writing rules that will trigger infinite recursion when people send malicious packets
samYou probably want actually-regular regular expressions that can run in linear time (there's probably a word for that)
ZashAnd how much of mod_firewall you wanna be compatible with
Zashsam: That might actually be "regular expressions"
samZash: "real regular expressions"?
ZashBut I haven't studied this, so what do I know
samHuh, I wonder why my name is "sam" all of a sudden.
ZashWho are you?
sammy mcabber config has not changed; maybe the wrong value is stored int he bookmark or something.
samOh, it thinks my nickname is already in use… that's odd, my phone is not using it, so I have no idea what I left logged in.