From 65601a96d20d4ce010723df3a059ee5a9713fae7 Mon Sep 17 00:00:00 2001
From: Florent Le Coz <louiz@louiz.org>
Date: Fri, 28 Mar 2014 01:48:08 +0100
Subject: The default type for message stanza is "normal"

---
 src/xmpp/xmpp_component.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/xmpp')

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");
-- 
cgit v1.2.3