summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-07-14 15:18:01 +0200
committerlouiz’ <louiz@louiz.org>2017-07-14 15:18:01 +0200
commitb2334707107e65dd15590b7472c990bbf79549eb (patch)
treed7f5af67e11b5177acbbb8f3b5bfd35bc2256181
parent8232c2cccc07f78a573f4bc39841f9b20693d8db (diff)
downloadbiboumi-b2334707107e65dd15590b7472c990bbf79549eb.tar.gz
biboumi-b2334707107e65dd15590b7472c990bbf79549eb.tar.bz2
biboumi-b2334707107e65dd15590b7472c990bbf79549eb.tar.xz
biboumi-b2334707107e65dd15590b7472c990bbf79549eb.zip
Send the 332 status only for our own presences
-rw-r--r--src/xmpp/xmpp_component.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index 7366422..9c3ba90 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -454,13 +454,15 @@ void XmppComponent::send_muc_leave(const std::string& muc_name, const std::strin
x["xmlns"] = MUC_USER_NS;
if (self)
{
- XmlSubNode status(x, "status");
- status["code"] = "110";
- }
- if (!user_requested)
- {
- XmlSubNode status(x, "status");
- status["code"] = "332";
+ {
+ XmlSubNode status(x, "status");
+ status["code"] = "110";
+ }
+ if (!user_requested)
+ {
+ XmlSubNode status(x, "status");
+ status["code"] = "332";
+ }
}
if (!message_str.empty())
{