From 610699f9211da976c55df975337e50305c4627c8 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Fri, 27 May 2011 00:14:21 +0200
Subject: [PATCH] handle caps only on the receiving account

---
 src/common/protocol/caps.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/protocol/caps.py b/src/common/protocol/caps.py
index 79c71da488..905708bc7b 100644
--- a/src/common/protocol/caps.py
+++ b/src/common/protocol/caps.py
@@ -88,6 +88,8 @@ class ConnectionCaps(object):
         callback to update our caps cache with queried information after
         we have retrieved an unknown caps hash and issued a disco
         """
+        if obj.conn.name != self._account:
+            return
         contact = self._get_contact_or_gc_contact_for_jid(obj.fjid)
         if not contact:
             log.info('Received Disco from unknown contact %s' % obj.fjid)
-- 
GitLab