allow all features if a contact has no resource until we fall back to disco query. Fixes #4327

This commit is contained in:
Yann Leboulanger 2008-09-22 09:35:19 +00:00
parent 35a9cf5d89
commit 363277cc69
1 changed files with 1 additions and 2 deletions

View File

@ -193,8 +193,7 @@ class CapsCache(object):
con.discoverInfo(jid, '%s#%s' % (node, hash))
def is_supported(self, contact, feature):
# No resource -> can't have any caps
if not contact or not contact.resource:
if not contact:
return False
# Unfortunately, if all resources are offline, the contact