summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-02-17 01:56:22 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-02-17 01:56:22 +0100
commit6700d5daf29bf4117ea964f2863652be104e7405 (patch)
treef953da4d34d42ccdb929a29c342697d55da0075c /src/xmpp
parentcf9f3a1f2855b358aa9bbc31f234801e9e1efc28 (diff)
downloadbiboumi-6700d5daf29bf4117ea964f2863652be104e7405.tar.gz
biboumi-6700d5daf29bf4117ea964f2863652be104e7405.tar.bz2
biboumi-6700d5daf29bf4117ea964f2863652be104e7405.tar.xz
biboumi-6700d5daf29bf4117ea964f2863652be104e7405.zip
Fix quit messages not being sent to XMPP
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/xmpp_component.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index facdbd4..2fb8a23 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -399,7 +399,7 @@ void XmppComponent::send_muc_leave(std::string&& muc_name, std::string&& nick, X
presence["from"] = muc_name + "@" + this->served_hostname + "/" + nick;
presence["type"] = "unavailable";
const std::string message_str = std::get<0>(message);
- if (message_str.empty() || self)
+ if (!message_str.empty() || self)
{
XmlNode status("status");
if (!message_str.empty())