From e35472a6cbc5ffecf0413c2c7da1e2552230d227 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Mon, 23 Dec 2013 17:02:46 +0100 Subject: Correctly send the part message to IRC By fixing a namespace when looking for an XML element containing that message --- src/xmpp/xmpp_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xmpp') 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()) : ""); } } -- cgit v1.2.3