diff options
-rw-r--r-- | gajim/vcard.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gajim/vcard.py b/gajim/vcard.py index abab96c6d..3e048d53c 100644 --- a/gajim/vcard.py +++ b/gajim/vcard.py @@ -398,10 +398,13 @@ class VcardWindow(EventHelper): tt_text = _("There is no pending subscription request.") ask_label.set_tooltip_text(tt_text) - resources = '%s (%s)' % (self.contact.resource, str( - self.contact.priority)) - uf_resources = self.contact.resource + _(' resource with priority ')\ - + str(self.contact.priority) + resources = '' + uf_resources = '' + if self.contact.resource: + resources = '%s (%s)' % (self.contact.resource, str( + self.contact.priority)) + uf_resources = self.contact.resource + _(' resource with priority ')\ + + str(self.contact.priority) if not self.contact.status: self.contact.status = '' |