# HG changeset patch # User Mikael Berthe # Date 1256424254 -7200 # Node ID e38300775548e8c248d8802a8632e332956107f1 # Parent a57f2634ee7c7a8e9c1dd8016a8ae7ce5ca35446 Do not reply to disco "result" IQ messages (Thanks to franky for the hint) diff -r a57f2634ee7c -r e38300775548 mcabber/src/xmpp_iq.c --- a/mcabber/src/xmpp_iq.c Sat Oct 24 16:28:00 2009 +0200 +++ b/mcabber/src/xmpp_iq.c Sun Oct 25 00:44:14 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);