XMPP Service Operators - 2017-12-11


  1. Ge0rG

    edhelas: block multi line messages from strangers. Also pastebin links

  2. edhelas

    how ?

  3. Zash

    Bother ejabberd devs about porting mod_firewall?

  4. Ge0rG

    edhelas: migrate to prosody! 🤣

  5. edhelas

    eheh

  6. Holger

    > Code expressions are powerful, and allow unconstrained access to Prosody's internal environment. This part will be non-trivial to port :-)

  7. Zash

    Just include all of Prosody

  8. Holger

    And 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.

  9. Holger

    That said, I'm thinking about porting this as well.

  10. Holger

    Zash: :-)

  11. Zash

    Lua patterns are roughly a subset of regular expressions

  12. Zash

    And probably is, in the language theory sense

  13. Zash

    People tend to think of PCRE and similar when they hear "regular expressions"

  14. Holger

    Well you can't pipe them as-is into regex functions.

  15. Holger

    Zash: So do I :-)

  16. Zash

    A bunch would work if you s/%/\\/

  17. Zash

    Notable exceptions are - which is like *? and %bxy which is ... not regular IIRC

  18. Holger

    Yes I know them, I did quite a bit of Lua actually (before Prosody even existed) :-)

  19. Holger

    They're just fine, I'm just unsure implementing them (or loading 'luerl' just for this purpose) would be worth it.

  20. Zash

    PCRE is supposedly huge compared to the Lua pattern implementation

  21. Holger

    Absolutely, but it's loaded anyway.

  22. Holger

    Apart from that the syntax is probably more familiar to most admins.

  23. Holger

    Then again, my only goal in implementing this would be loading Georg's rules, so what do I care about admins.

  24. sam

    I 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

  25. sam

    You probably want actually-regular regular expressions that can run in linear time (there's probably a word for that)

  26. Zash

    And how much of mod_firewall you wanna be compatible with

  27. Zash

    sam: That might actually be "regular expressions"

  28. sam

    Zash: "real regular expressions"?

  29. Zash

    But I haven't studied this, so what do I know

  30. sam

    Huh, I wonder why my name is "sam" all of a sudden.

  31. Zash

    Who are you?

  32. Zash

    ???

  33. sam

    An imposter

  34. Zash

    !!

  35. sam

    my mcabber config has not changed; maybe the wrong value is stored int he bookmark or something.

  36. sam

    Oh, 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.

  37. SamWhited

    Test

  38. SamWhited

    That's better.

  39. Zash

    https://en.wikipedia.org/wiki/File:Chomsky-hierarchy.svg

  40. Zash

    That stuff

  41. Zash

    https://en.wikipedia.org/wiki/Regular_language#Formal_definition

  42. SamWhited

    Maybe I'll start calling them "regular regular expressions", since the first regular is ignored by Perl et al. and apparently is meaningless

  43. Ge0rG

    SamWhited: just call them cat expressions, because they look like typed by a cat running over the keyboard

  44. SamWhited

    Ge0rG: this is true, but that doesn't distinguish them from PCRE style regular expressions, or anything written in Erlang.

  45. Zash

    catjabberd

  46. Ge0rG

    JabberCat

  47. Zash

    That sounds familiar

  48. SamWhited

    https://github.com/jabbercat/jabbercat