Hi,
Thats great to here that the intention is the same.
I dont think the text conveys that though.
hint that the specified range of the content is being
addressed to the specified occupant.
If i send
"@admins please ban this user"
and then mark "please ban this user" with begin/end, i would say i follow the
XEP because i marked the content which is addressed to the admins.
Regards
Philipp
On Tue, Mar 10, 2026, at 19:06, Snit Guckfung via Standards wrote:
On Tue, 10 Mar 2026 18:47:05 +0100
Philipp Hörist <philipp(a)hoerist.com> wrote:
Hi,
Im a bit confused about begin/end
The XEP says
If a mention element of type urn:xmpp:mentions:0
or its subtypes
contains both begin and end attributes, the receiving entity MAY
use this as a hint that the specified range of the content is being
addressed to the specified occupant.
I dont think this is necessary, as its usual that the content that
follows the mention is addressed to the mentioned user.
What was missing was that we can special format the nickname or the
@admin @all etc in the GUI when we receive a message, without
hardcoding some regex or scanning for nicknames.
The 'begin' and 'end' attributes specify the range of the
specially-formatted text. It is meant to be used to, for example,
pillify text like "@room" or "@romeo". Note that there can be
multiple
mentions, and the content addressed to them isn't always what follows:
"@romeo, have you seen @juliet?" has two mentions, with ranges
specified for "@romeo" and "@juliet".
_______________________________________________
Standards mailing list -- standards(a)xmpp.org
To unsubscribe send an email to standards-leave(a)xmpp.org