-
lovetox
singpolyma, you support 172 nickname in muc presences as i heard
-
lovetox
is there anything special you did to display that, or can simply anyone now assume the same nickname
-
lovetox
i kind of think that does not really introduce some real new attack surface .. but i wonder how other platforms deal with that, or maybe it has been shown in practice to be not a problem at all
-
singpolyma
I only actually show it in some special circumstances right now since no MUC I know of supports enforcing policy on these
-
singpolyma
(the special circumstances I still allow without any disco are a hack where if the nick punycoded matches the resource then I show it)
-
lovetox
meh, almost no value for the complexity ..
-
singpolyma
Yes I agree. I did as an experiment for the "emoji in MUC nick" issue but it's not my favourite thing as is
-
lovetox
so this is then a special feature for transports only
-
singpolyma
partly yeah. Slidge uses it when the foreign user has emoji in nick etc
-
lovetox
damn PM is so broken
-
lovetox
we forgot to add to xep0045 that server MUST add the PM marker when sending message errors
-
moparisthebest
I still think the only way is for clients to be forever aware once they join a muc that all messages from that bare JID are from a muc and all messages from other JIDs are not MUCs regardless of that marker
-
moparisthebest
it's just not enforced by any server ever so can't really be trusted in an open network
-
lovetox
but sometimes you setup a new client, and then you miss that knowledge
-
lovetox
also its a bad architecture, if i need to check my db everytime i want to interpret a message
-
moparisthebest
another (easier imho) alternative is to have a stream for MUCs and a different stream for not-MUCs, then you always know without looking up anything
-
moparisthebest
I guess that leaves... old MAM entries for MUCs you've already left on an old client ? I don't know the fix there...
-
lovetox
the way it was done afterwards is the right direction, the server must mark that in the message
-
lovetox
we just forgot errors
-
lovetox
if i would start new, i would add a new message type=pm even
-
moparisthebest
what server must mark them ? and what server must un-mark them if they come from a not-MUC ?
-
lovetox
of course the sender
-
lovetox
why would you need to unmark something
-
moparisthebest
the second part is the big missing piece that even if it were spec'd now can't be relied on for years
-
lovetox
it is speced, MUCs mark PMs
-
lovetox
and since they do, this works ok
-
moparisthebest
> why would you need to unmark something oh because an attacker can spam the crap out of you with messages they mark as a MUC PM and most clients handle this very very poorly ↺
-
lovetox
?! they can do this with any other message type also
-
lovetox
there is zero difference
-
moparisthebest
as in messages or a phone ring from a random muc participant and don't even show enough in the UI to let you block them
-
singpolyma
> if i would start new, i would add a new message type=pm even I mean, if I would start new I wouldn't include "muc pm" as a thing ↺
-
singpolyma
> as in messages or a phone ring from a random muc participant and don't even show enough in the UI to let you block them that's bugs. we should fix bugs of course ↺
-
lovetox
anyway, other topic, i see in prosody mucs
-
lovetox
muc#roomconfig_allowpm = moderators
-
lovetox
and i should interpret that as not only moderators *can* send PMs
-
lovetox
also users can send PMs to moderators?
-
singpolyma
yes
-
lovetox
or is this an extension that only prosody has and is not dependent on that setting
-
singpolyma
AIUI that means can send pms to moderators and moderators can pm anyone
-
moparisthebest
or maybe mods can always send PMs regardless of settings ? 🤔
-
lovetox
its pretty clear from the XEP that the setting controlls who is allowed to send PMs
-
lovetox
the other direction is i think a prosody interpretation or extension
-
lovetox
i just wonder if other servers support that
-
moparisthebest
does it make sense to ever restrict an admin from doing anything ?
-
lovetox
maybe not, but the spec is written like it is, so there is no changing it
-
lovetox
but im interested in the *other* direction
-
lovetox
a visitor can PM a Mod
-
lovetox
as it seems in prosody mucs
-
lovetox
its even unclear why this was added in prosody
-
lovetox
as we have a dedicated mechanism to request voice
-
lovetox
somehow users learn that they have to PM mods in some prosody channels .. because they dont answer voice requests?!
-
lovetox
i dont understand the dynamics at play here
-
singpolyma
> i just wonder if other servers support that I'm pretty sure ejabberd did first, but not sure what their config form looks like to do it ↺
-
singpolyma
> as we have a dedicated mechanism to request voice oh. this is a bit odd but it's because *some* clients don't implement this at all. no way to request and/or no way for mods to know a request has happened... this is IMHO rather a problem in general ↺
-
moparisthebest
> somehow users learn that they have to PM mods in some prosody channels .. because they dont answer voice requests?! because no clients have a good way to handle voice requests, very few can send them, all support MUC PMs ↺
-
moparisthebest
client-wise not sure why you wouldn't just let anyone PM always, just display any error
-
moparisthebest
as a mod I really need like a dashboard to handle voice requests
-
singpolyma
>> somehow users learn that they have to PM mods in some prosody channels .. because they dont answer voice requests?! > > because no clients have a good way to handle voice requests, very few can send them, all support MUC PMs Gajim has a very good way. I think Cheogram Android has a passable way but it could be better ↺
-
singpolyma
> as a mod I really need like a dashboard to handle voice requests that's basically what Gajim does ↺
-
moparisthebest
cheogram android is the only client I know that at least displays them to the mod, but mixed in the chat and no way from there to voice them, have to remember the name , 2 clicks to member list, search the name, voice them (hope they are still online or you can't)
-
moparisthebest
gajim sounds very nice in that regard then, kudos :)
-
lovetox
> client-wise not sure why you wouldn't just let anyone PM always, just display any error cant, prosody does not mark message error as PM, hence gajim parses JID wrong, hence cannot join to PM JID ↺
-
moparisthebest
>> client-wise not sure why you wouldn't just let anyone PM always, just display any error > cant, prosody does not mark message error as PM, hence gajim parses JID wrong, hence cannot join to PM JID lol oof ↺
-
lovetox
its all connected :D
-
lovetox
so my next step is, try to parse that PM setting, and allow the user to only send PMs to whatever the setting says
-
lovetox
what the heck, i make a db lookup for the error, errors should not happen often so this should not impact performance
-
moparisthebest
sounds like famous last words :) but what other choice do you have
-
singpolyma
Errors are an update query by id for me