Use the correct type of error

This commit is contained in:
Florent Le Coz
2014-03-24 21:29:12 +01:00
parent e47b164a43
commit 1208ba2524
+4 -4
View File
@@ -413,10 +413,10 @@ void XmppComponent::send_invalid_room_error(const std::string& muc_name,
XmlNode error("error"); XmlNode error("error");
error["by"] = muc_name + "@" + this->served_hostname; error["by"] = muc_name + "@" + this->served_hostname;
error["type"] = "wait"; error["type"] = "wait";
XmlNode service_unavailable("service-unavailable"); XmlNode item_not_found("item-not-found");
service_unavailable["xmlns"] = STANZA_NS; item_not_found["xmlns"] = STANZA_NS;
service_unavailable.close(); item_not_found.close();
error.add_child(std::move(service_unavailable)); error.add_child(std::move(item_not_found));
XmlNode text("text"); XmlNode text("text");
text["xmlns"] = STANZA_NS; text["xmlns"] = STANZA_NS;
text["xml:lang"] = "en"; text["xml:lang"] = "en";