summaryrefslogtreecommitdiff
path: root/src/contact.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/contact.py')
-rw-r--r--src/contact.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/contact.py b/src/contact.py
index 3a8e38ab..b8963a71 100644
--- a/src/contact.py
+++ b/src/contact.py
@@ -100,8 +100,10 @@ class Contact(object):
@property
def resources(self):
"""List of the available resources as Resource objects"""
- return [Resource('%s/%s' % (self.bare_jid, key), self.__item.resources[key])
- for key in self.__item.resources]
+ return [Resource(
+ '%s%s' % (self.bare_jid, ('/' + key) if key else ''),
+ self.__item.resources[key]
+ ) for key in self.__item.resources.keys()]
@property
def subscription(self):