handle caps only on the receiving account

This commit is contained in:
Yann Leboulanger 2011-05-27 00:14:21 +02:00
parent d7f6b64abe
commit 610699f921
1 changed files with 2 additions and 0 deletions

View File

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