diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-03-24 21:29:12 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-03-24 21:29:12 +0100 |
commit | 1208ba2524da3b4d3a592306838a55d446b3414a (patch) | |
tree | 317736196b2c84dbda5ed7a191d431d5b09f2ed5 /src/xmpp | |
parent | e47b164a43e0c4f411869fbbefe875fd70df8506 (diff) | |
download | biboumi-1208ba2524da3b4d3a592306838a55d446b3414a.tar.gz biboumi-1208ba2524da3b4d3a592306838a55d446b3414a.tar.bz2 biboumi-1208ba2524da3b4d3a592306838a55d446b3414a.tar.xz biboumi-1208ba2524da3b4d3a592306838a55d446b3414a.zip |
Use the correct type of error
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/xmpp_component.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index a2c6c2b..cd6e06b 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -413,10 +413,10 @@ void XmppComponent::send_invalid_room_error(const std::string& muc_name, XmlNode error("error"); error["by"] = muc_name + "@" + this->served_hostname; error["type"] = "wait"; - XmlNode service_unavailable("service-unavailable"); - service_unavailable["xmlns"] = STANZA_NS; - service_unavailable.close(); - error.add_child(std::move(service_unavailable)); + XmlNode item_not_found("item-not-found"); + item_not_found["xmlns"] = STANZA_NS; + item_not_found.close(); + error.add_child(std::move(item_not_found)); XmlNode text("text"); text["xmlns"] = STANZA_NS; text["xml:lang"] = "en"; |