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

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2010-10-15 16:27:54 +0400
committerDenis Fomin <fominde@gmail.com>2010-10-15 16:27:54 +0400
commit52753877adbc3e3af3d3f72cd3c753dce3bd5afd (patch)
tree031043d0270cbba72f381d8fd3879fcb3538bdd1 /clients_icons
parente1c3f79429510dac98a22aea66adc45e7f0228a9 (diff)
clients_icons. small fix
Diffstat (limited to 'clients_icons')
-rw-r--r--clients_icons/clients_icons.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py
index c45f3d2..673fcab 100644
--- a/clients_icons/clients_icons.py
+++ b/clients_icons/clients_icons.py
@@ -191,13 +191,14 @@ class ClientsIconsPlugin(GajimPlugin):
return
iter_ = roster._get_contact_iter(iq_obj.jid, iq_obj.conn.name, contact,
roster.model)[0]
- caps = contact.client_caps._node
- if not caps:
- tag = iq_obj.iq_obj.getTags('c')
- if tag:
- caps = tag[0].getAttr('node')
+ if contact != iq_obj.contact:
+ caps = contact.client_caps._node
self.set_icon(roster.model, iter_, self.renderer_num, caps)
return
+ caps = None
+ tag = iq_obj.iq_obj.getTags('c')
+ if tag:
+ caps = tag[0].getAttr('node')
self.set_icon(roster.model, iter_, self.renderer_num, caps)
def gc_presence_received(self, iq_obj):
@@ -223,6 +224,7 @@ class ClientsIconsPlugin(GajimPlugin):
model[iter_][pos] = self.default_pixbuf
return
client_icon = clients.get(caps.split('#')[0], None)
+ print client_icon
if not client_icon:
if self.config['show_unknown_icon']:
model[iter_][pos] = self.default_pixbuf