ejabberd - Comments for "XEP-0045: Changing Own Nickname in Groupchat Must be Signalled with Status Code 110" https://www.ejabberd.im/node/17036 en This patch implements what https://www.ejabberd.im/node/17036#comment-63407 <p>This patch implements what you describe. I'll apply to the master branch.</p> <pre> diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 02c83ed..0d632c1 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -2276,15 +2276,21 @@ send_nick_changing(JID, OldNick, StateData, [{"affiliation", SAffiliation}, {"role", SRole}] end, + Status110 = case JID == Info#user.jid of + true -&gt; + [{xmlelement, "status", [{"code", "110"}], []}]; + false -&gt; + [] + end, Packet1 = {xmlelement, "presence", [{"type", "unavailable"}], [{xmlelement, "x", [{"xmlns", ?NS_MUC_USER}], [{xmlelement, "item", ItemAttrs1, []}, - {xmlelement, "status", [{"code", "303"}], []}]}]}, + {xmlelement, "status", [{"code", "303"}], []}|Status110]}]}, Packet2 = xml:append_subtags( Presence, [{xmlelement, "x", [{"xmlns", ?NS_MUC_USER}], - [{xmlelement, "item", ItemAttrs2, []}]}]), + [{xmlelement, "item", ItemAttrs2, []}|Status110]}]), if SendOldUnavailable -&gt; ejabberd_router:route( jlib:jid_replace_resource(StateData#state.jid, OldNick), </pre> Fri, 14 Feb 2014 15:13:39 +0000 mfoss comment 63407 at https://www.ejabberd.im