Commit acc940a4 authored by Dicson's avatar Dicson

clients_icons.prevent traceback

parent 767fb7e9
......@@ -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
......
[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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment