diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-03-28 01:48:08 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-03-28 01:48:08 +0100 |
commit | 65601a96d20d4ce010723df3a059ee5a9713fae7 (patch) | |
tree | 65b4bc1b71c47b21221d7bbaff298c030a579fd2 /src/xmpp | |
parent | e971f64f92c640d3ee634b01eeba7fbf056fdaac (diff) | |
download | biboumi-65601a96d20d4ce010723df3a059ee5a9713fae7.tar.gz biboumi-65601a96d20d4ce010723df3a059ee5a9713fae7.tar.bz2 biboumi-65601a96d20d4ce010723df3a059ee5a9713fae7.tar.xz biboumi-65601a96d20d4ce010723df3a059ee5a9713fae7.zip |
The default type for message stanza is "normal"
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/xmpp_component.cpp | 4 |
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"); |