summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-12-23 17:02:46 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-12-23 17:02:46 +0100
commite35472a6cbc5ffecf0413c2c7da1e2552230d227 (patch)
treec2606c8f6455c6efe07d910a3ddcb68b5101e344 /src
parent7d8ce3b5638b8e09313a6218014a307ab98e6289 (diff)
downloadbiboumi-e35472a6cbc5ffecf0413c2c7da1e2552230d227.tar.gz
biboumi-e35472a6cbc5ffecf0413c2c7da1e2552230d227.tar.bz2
biboumi-e35472a6cbc5ffecf0413c2c7da1e2552230d227.tar.xz
biboumi-e35472a6cbc5ffecf0413c2c7da1e2552230d227.zip
Correctly send the part message to IRC
By fixing a namespace when looking for an XML element containing that message
Diffstat (limited to 'src')
-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 6424d74..7810499 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -176,7 +176,7 @@ void XmppComponent::handle_presence(const Stanza& stanza)
}
else if (type == "unavailable")
{
- XmlNode* status = stanza.get_child(MUC_USER_NS":status");
+ XmlNode* status = stanza.get_child(COMPONENT_NS":status");
bridge->leave_irc_channel(std::move(iid), status ? std::move(status->get_inner()) : "");
}
}