From 6e19476f6fe115ddcd96b69949f2d0576cdae254 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 19 Sep 2014 01:28:44 +0100 Subject: [PATCH] Do not send caps request on self presence --- src/xmpp/presence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c index 5e97b963..2672b277 100644 --- a/src/xmpp/presence.c +++ b/src/xmpp/presence.c @@ -582,7 +582,7 @@ _available_handler(xmpp_conn_t * const conn, } // send disco info for capabilities, if not cached - if (stanza_contains_caps(stanza)) { + if ((g_strcmp0(my_jid->fulljid, from_jid->fulljid) != 0) && (stanza_contains_caps(stanza))) { log_info("Presence contains capabilities."); char *hash = stanza_caps_get_hash(stanza);