diff options
author | James Booth <boothj5@gmail.com> | 2014-09-19 01:28:44 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-09-19 01:28:44 +0100 |
commit | 6e19476f6fe115ddcd96b69949f2d0576cdae254 (patch) | |
tree | 9ccd903c0ebbb08cddc6a36fa6327f1a225dd549 /src/xmpp | |
parent | 99c0b3f2cf9feb9dffa998feee97187c5b1ada14 (diff) | |
download | profani-tty-6e19476f6fe115ddcd96b69949f2d0576cdae254.tar.gz |
Do not send caps request on self presence
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/presence.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |