changeset 1638:3b3b5c1f8327

Merge main and crew
author Mikael Berthe <mikael@lilotux.net>
date Sun, 25 Oct 2009 01:15:31 +0200
parents e38300775548 (diff) 5f35d3573fe0 (current diff)
children d9913c1b35e7
files
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/xmpp_iq.c	Sat Oct 24 21:43:34 2009 +0200
+++ b/mcabber/src/xmpp_iq.c	Sun Oct 25 01:15:31 2009 +0200
@@ -526,6 +526,9 @@
   const char *node = NULL;
   const char *param = NULL;
 
+  if (lm_message_get_sub_type(m) == LM_MESSAGE_SUB_TYPE_RESULT)
+    return LM_HANDLER_RESULT_REMOVE_MESSAGE;
+
   r = lm_message_new_iq_from_query(m, LM_MESSAGE_SUB_TYPE_RESULT);
   query = lm_message_node_add_child(r->node, "query", NULL);
   lm_message_node_set_attribute(query, "xmlns", NS_DISCO_INFO);