summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-09-22 15:48:36 +0200
committerlouiz’ <louiz@louiz.org>2019-09-22 15:54:13 +0200
commit89bb886a1b4db9b7604680db8de17d08d3c26e89 (patch)
tree551c12eb734f0579f9a0e6c9a3195e843b6a5d82 /src/xmpp
parentcbfb562903363000b000963300c81542174f8eae (diff)
downloadbiboumi-89bb886a1b4db9b7604680db8de17d08d3c26e89.tar.gz
biboumi-89bb886a1b4db9b7604680db8de17d08d3c26e89.tar.bz2
biboumi-89bb886a1b4db9b7604680db8de17d08d3c26e89.tar.xz
biboumi-89bb886a1b4db9b7604680db8de17d08d3c26e89.zip
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.
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/xmpp_component.cpp6
1 files changed, 4 insertions, 2 deletions
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);