about summary refs log tree commit diff stats
path: root/src/xmpp/presence.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-09-19 01:28:44 +0100
committerJames Booth <boothj5@gmail.com>2014-09-19 01:28:44 +0100
commit6e19476f6fe115ddcd96b69949f2d0576cdae254 (patch)
tree9ccd903c0ebbb08cddc6a36fa6327f1a225dd549 /src/xmpp/presence.c
parent99c0b3f2cf9feb9dffa998feee97187c5b1ada14 (diff)
downloadprofani-tty-6e19476f6fe115ddcd96b69949f2d0576cdae254.tar.gz
Do not send caps request on self presence
Diffstat (limited to 'src/xmpp/presence.c')
-rw-r--r--src/xmpp/presence.c2
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);