1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Do not send caps request on self presence

This commit is contained in:
James Booth 2014-09-19 01:28:44 +01:00
parent 99c0b3f2cf
commit 6e19476f6f

View File

@ -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);