summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-03-28 01:48:08 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-03-28 01:48:08 +0100
commit65601a96d20d4ce010723df3a059ee5a9713fae7 (patch)
tree65b4bc1b71c47b21221d7bbaff298c030a579fd2
parente971f64f92c640d3ee634b01eeba7fbf056fdaac (diff)
downloadbiboumi-65601a96d20d4ce010723df3a059ee5a9713fae7.tar.gz
biboumi-65601a96d20d4ce010723df3a059ee5a9713fae7.tar.bz2
biboumi-65601a96d20d4ce010723df3a059ee5a9713fae7.tar.xz
biboumi-65601a96d20d4ce010723df3a059ee5a9713fae7.zip
The default type for message stanza is "normal"
-rw-r--r--src/xmpp/xmpp_component.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index d849884..2799a21 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -335,7 +335,9 @@ void XmppComponent::handle_message(const Stanza& stanza)
try {
type = stanza["type"];
}
- catch (const AttributeNotFound&) {}
+ catch (const AttributeNotFound&) {
+ type = "normal";
+ }
malformed_stanza_error.disable();
std::string error_type("cancel");