Mercurial > hg
changeset 1636:e38300775548
Do not reply to disco "result" IQ messages
(Thanks to franky for the hint)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 25 Oct 2009 00:44:14 +0200 |
parents | a57f2634ee7c |
children | 3b3b5c1f8327 |
files | mcabber/src/xmpp_iq.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);