Modern XMPP project discussion - 2021-03-06


  1. raucao

    not sure if this is a good venue for the question, but: anyone know of a XEP or planned XEP that would allow limiting length of MUC messages?

  2. jonas’

    I don’t know of any, but a XEP which does that and also publishes the length limit would be very interesting to have

  3. jonas’

    (for IRC gateways mostly)

  4. raucao

    i'm asking more for protecting channels from overly "motivated" members

  5. jonas’

    how do you think limiting the message length will help there?

  6. jonas’

    would it be worthwhile to have such long messages automatically put in a pastebin? in that case, there’s prosody’s mod_pastebin

  7. raucao

    i don't want to silence people, but just prevent them from posting 1000 char messages into a chat

  8. jonas’

    -> https://modules.prosody.im/mod_pastebin.html

  9. raucao

    and if there's a limit, the client needs to be able to show that, of course

  10. MattJ

    client showing the limit is the part that needs XEP work

  11. raucao

    similar with posting 100 messages without reply in between

  12. raucao

    would be nice if the client could basically politely indicate "hey there, please don't lead monologues here. there are other people too"

  13. Sam

    I've accidentally done that trying to select the title of a news article and somehow the browser accidentally selects the whole thing and my TUI client sends it as hundreds of long messages, so I would like this too.

  14. Zash

    You can communicate this after the fact using errors (ie wait and try again later or modify your message to be shorter)

  15. raucao

    also a good use case

  16. jonas’

    Sam, ask your TUI client developers to implement support for bracketed paste :)

  17. Zash

    But preemptive advertising of limits is nicer

  18. Sam

    They have it, but I wasn't using it because I thought I was sending just one line.

  19. jonas’

    huh? isn’t bracketed paste implicit?

  20. Sam

    no

  21. jonas’

    I mean, like, how can you not be using it?

  22. jonas’

    (if the terminal and application support it)

  23. Sam

    unless we're talking about two different things

  24. jonas’

    I get the impression we might

  25. Zash

    Isn't that a protocol between the display system, terminal and app that says "here comes a paste: [ ... ] and that's it!"

  26. jonas’

    mostly between the terminal and the app: https://cirw.in/blog/bracketed-paste

  27. Sam

    oh I dunno about that

  28. Sam

    yah, that would be way better

  29. jonas’

    some fake it by waiting for N ms after a "newline" to see whether there’s more to come and if there is, don’t send but instead accumulate into the buffer (poezio does it that way I think)

  30. MattJ

    It does

  31. MattJ

    Works pretty well

  32. jonas’

    has fun side effects when your SSH is laggy though :)

  33. southerntofu

    yes poezio has funny side-effects over laggy SSH :)

  34. southerntofu

    (like having to repeat "enter" multiple times for it to be taken into account to publish a message)

  35. Stefan

    Maybe this will solve one of my issues 🤔 I'm using vim to write messages and add this text into the readline. Should I add the bracketed paste thing when I add it into the readline buffer 🤔