-
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?
-
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
-
jonas’
(for IRC gateways mostly)
-
raucao
i'm asking more for protecting channels from overly "motivated" members
-
jonas’
how do you think limiting the message length will help there?
-
jonas’
would it be worthwhile to have such long messages automatically put in a pastebin? in that case, there’s prosody’s mod_pastebin
-
raucao
i don't want to silence people, but just prevent them from posting 1000 char messages into a chat
-
jonas’
-> https://modules.prosody.im/mod_pastebin.html
-
raucao
and if there's a limit, the client needs to be able to show that, of course
-
MattJ
client showing the limit is the part that needs XEP work
-
raucao
similar with posting 100 messages without reply in between
-
raucao
would be nice if the client could basically politely indicate "hey there, please don't lead monologues here. there are other people too"
-
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.
-
Zash
You can communicate this after the fact using errors (ie wait and try again later or modify your message to be shorter)
-
raucao
also a good use case
-
jonas’
Sam, ask your TUI client developers to implement support for bracketed paste :)
-
Zash
But preemptive advertising of limits is nicer
-
Sam
They have it, but I wasn't using it because I thought I was sending just one line.
-
jonas’
huh? isn’t bracketed paste implicit?
-
Sam
no
-
jonas’
I mean, like, how can you not be using it?
-
jonas’
(if the terminal and application support it)
-
Sam
unless we're talking about two different things
-
jonas’
I get the impression we might
-
Zash
Isn't that a protocol between the display system, terminal and app that says "here comes a paste: [ ... ] and that's it!"
-
jonas’
mostly between the terminal and the app: https://cirw.in/blog/bracketed-paste
-
Sam
oh I dunno about that
-
Sam
yah, that would be way better
-
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)
-
MattJ
It does
-
MattJ
Works pretty well
-
jonas’
has fun side effects when your SSH is laggy though :)
-
southerntofu
yes poezio has funny side-effects over laggy SSH :)
-
southerntofu
(like having to repeat "enter" multiple times for it to be taken into account to publish a message)
-
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 🤔