From 056ff7bd2829df1f284a0c17b6264b0bb7b18af7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 20 May 2005 15:50:44 +0000 Subject: [PATCH] do not print ": " in vcard window if there is no status message --- src/vcard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vcard.py b/src/vcard.py index 18b474788..d51144ced 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -126,7 +126,9 @@ class Vcard_window: resources = self.user.resource + ' (' + str(self.user.priority) + ')' if not self.user.status: self.user.status = '' - stats = self.user.show + ': ' + self.user.status + stats = self.user.show + if self.user.status: + stats += ': ' + self.user.status gajim.connections[self.account].request_os_info(self.user.jid, self.user.resource) self.os_info = {0: {'resource': self.user.resource, 'client': '',