From 89bb886a1b4db9b7604680db8de17d08d3c26e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sun, 22 Sep 2019 15:48:36 +0200 Subject: Always add a 210 status in our self join presence Because it's much much simpler than to track if we changed the nick that was requested in the join request. And client will probably not get confused, I hope. --- src/xmpp/xmpp_component.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index b3d925e..35e1672 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -340,8 +340,10 @@ void XmppComponent::send_user_join(const std::string& from, if (self) { - XmlSubNode status(x, "status"); - status["code"] = "110"; + XmlSubNode status_self(x, "status"); + status_self["code"] = "110"; + XmlSubNode status_nick_modified(x, "status"); + status_nick_modified["code"] = "210"; } } this->send_stanza(presence); -- cgit v1.2.3