Mercurial > hg
changeset 1919:fba12c1f6386
Send a result message when we receive a roster push
Reported by Hermitifier.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 09 Nov 2010 12:09:23 +0100 |
parents | 0fa6df17bc5c |
children | bfa507815e0c |
files | mcabber/mcabber/xmpp_iq.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp_iq.c Tue Nov 09 11:24:28 2010 +0100 +++ b/mcabber/mcabber/xmpp_iq.c Tue Nov 09 12:09:23 2010 +0100 @@ -636,6 +636,14 @@ g_free(cleanalias); } + // Acknowledge IQ message + if (lm_message_get_sub_type(m) == LM_MESSAGE_SUB_TYPE_SET) { + LmMessage *result; + result = lm_message_new_iq_from_query(m, LM_MESSAGE_SUB_TYPE_RESULT); + lm_connection_send(c, result, NULL); + lm_message_unref(result); + } + buddylist_build(); update_roster = TRUE; if (need_refresh)