Skip to content
Snippets Groups Projects
Commit acc940a4 authored by Dicson's avatar Dicson
Browse files

clients_icons.prevent traceback

parent 767fb7e9
No related branches found
No related tags found
No related merge requests found
...@@ -349,7 +349,13 @@ class ClientsIconsPlugin(GajimPlugin): ...@@ -349,7 +349,13 @@ class ClientsIconsPlugin(GajimPlugin):
if self.config['show_unknown_icon']: if self.config['show_unknown_icon']:
model[iter_][pos] = self.default_pixbuf model[iter_][pos] = self.default_pixbuf
return 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 not client_icon:
if self.config['show_unknown_icon']: if self.config['show_unknown_icon']:
model[iter_][pos] = self.default_pixbuf model[iter_][pos] = self.default_pixbuf
......
[info] [info]
name: Clients icons name: Clients icons
short_name: clients_icons short_name: clients_icons
version: 1.3 version: 1.4
description: Shows the client icons in the roster description: Shows the client icons in the roster
and in groupchats. and in groupchats.
Depends: Gajim > r12506 Depends: Gajim > r12506
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment