clients_icons.prevent traceback

This commit is contained in:
Denis Fomin
2011-12-09 00:30:58 +03:00
parent 767fb7e9bf
commit acc940a466
2 changed files with 8 additions and 2 deletions

View File

@@ -349,7 +349,13 @@ class ClientsIconsPlugin(GajimPlugin):
if self.config['show_unknown_icon']:
model[iter_][pos] = self.default_pixbuf
return
client_icon = clients.get(caps.split('#')[0].split()[0], None)
caps_ = caps.split('#')[0].split()
if caps_:
client_icon = clients.get(caps_[0].split()[0], None)
else:
client_icon = None
if not client_icon:
if self.config['show_unknown_icon']:
model[iter_][pos] = self.default_pixbuf

View File

@@ -1,7 +1,7 @@
[info]
name: Clients icons
short_name: clients_icons
version: 1.3
version: 1.4
description: Shows the client icons in the roster
and in groupchats.
Depends: Gajim > r12506