From ca8618941240545f76fd8ec32e7acb31226ab2d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 13 Dec 2016 23:57:19 +0100 Subject: Include the element in stanza error when there IS a text --- louloulibs/xmpp/xmpp_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'louloulibs') diff --git a/louloulibs/xmpp/xmpp_component.cpp b/louloulibs/xmpp/xmpp_component.cpp index 32702d1..cbd80c4 100644 --- a/louloulibs/xmpp/xmpp_component.cpp +++ b/louloulibs/xmpp/xmpp_component.cpp @@ -536,7 +536,7 @@ void XmppComponent::send_presence_error(const std::string& muc_name, XmlNode error("error"); error["by"] = muc_name + "@" + this->served_hostname; error["type"] = type; - if (text.empty()) + if (!text.empty()) { XmlNode text_node("text"); text_node["xmlns"] = STANZA_NS; -- cgit v1.2.3