From a601a1482064bd43d07d463e850f7f50733d3c0d Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sun, 11 Nov 2012 22:43:47 +0400 Subject: [PATCH] ClientsIconsPlugin. Do not add clients info to offline contacts --- clients_icons/clients_icons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py index 90ab82c..50dbcc1 100644 --- a/clients_icons/clients_icons.py +++ b/clients_icons/clients_icons.py @@ -239,6 +239,8 @@ class ClientsIconsPlugin(GajimPlugin): vcard_table.attach(self.table, 2, 3, first_place, first_place + 1, gtk.FILL, vertical_fill, 0, 0) else: + if contact.show == 'offline': + return label.set_markup(_('Client:')) caps = contact.client_caps._node vcard_current_row = vcard_table.get_property('n-rows')