Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2006-10-10 21:25:26 +0400
committerYann Leboulanger <asterix@lagaule.org>2006-10-10 21:25:26 +0400
commit713d523344415e8a22647201b73325f49dcb9069 (patch)
treea13b251ec7e066fc14fae38fb32a460b3ab7c748 /src
parent9f417b7396419a7204ecb029c5d0091f156a57c4 (diff)
fix wrong var name. fixes TBs
Diffstat (limited to 'src')
-rw-r--r--src/common/contacts.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/contacts.py b/src/common/contacts.py
index 2c136aeb0..4e05c7f53 100644
--- a/src/common/contacts.py
+++ b/src/common/contacts.py
@@ -71,18 +71,18 @@ class Contact:
'''if roster should not be visible in roster'''
# JEP-0162
hide = True
- if contact.sub in ('both', 'to', 'from'):
+ if self.sub in ('both', 'to', 'from'):
hide = False
- elif contact.ask == 'subscribe':
+ elif self.ask == 'subscribe':
hide = False
- elif contact.name or len(contact.groups):
+ elif self.name or len(self.groups):
hide = False
return hide
def is_observer(self):
# XEP-0162: http://www.xmpp.org/extensions/xep-0162.html
is_observer = False
- if is_hidden_in_roster() and contact.sub == 'from':
+ if self.is_hidden_from_roster() and self.sub == 'from':
is_observer = True
return is_observer