From a5871871c7a8b9965e148f45b26041abe1f2e844 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 5 Jan 2012 23:12:01 +0400 Subject: [PATCH] Clients Icons. Fix facebook and vk. --- clients_icons/clients_icons.py | 6 +++++- clients_icons/manifest.ini | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py index 8f5007c..6947ef9 100644 --- a/clients_icons/clients_icons.py +++ b/clients_icons/clients_icons.py @@ -179,8 +179,12 @@ class ClientsIconsPlugin(GajimPlugin): return if roster.model[child_iters[0]][self.renderer_num] is None: caps = contact.client_caps._node - if jid == 'juick@juick.com': + if 'facebook.com' in jid: + caps = 'facebook.com' + elif jid == 'juick@juick.com': caps = 'http://juick.com/caps' + elif '@vk.com' in jid: + caps = 'vk.com' elif jid == 'psto@psto.net': caps = 'psto@psto.net' elif jid == 'rss@isida-bot.com': diff --git a/clients_icons/manifest.ini b/clients_icons/manifest.ini index fd2fd40..922df46 100644 --- a/clients_icons/manifest.ini +++ b/clients_icons/manifest.ini @@ -1,7 +1,7 @@ [info] name: Clients icons short_name: clients_icons -version: 1.5 +version: 1.6 description: Shows the client icons in the roster and in groupchats. Depends: Gajim > r12506