Added facebook and vcontact support

This commit is contained in:
Denis Fomin
2011-03-18 14:08:24 +03:00
parent f90f540eee
commit fb3b07ec76
3 changed files with 10 additions and 3 deletions

View File

@@ -82,6 +82,8 @@ clients = {
'http://www.adiumx.com/caps': 'adium.png',
'http://www.adiumx.com': 'adium.png',
'http://juick.com/caps': 'juick.png',
'vk.com': 'vkontakte.png',
'facebook.com':'facebook.png'
'http://snapi-bot.googlecode.com/caps': 'bot.png',
'http://www.barobin.com/caps': 'bayanicq.png',
'http://chat.ovi.com/caps': 'ovi-chat.png',
@@ -289,8 +291,13 @@ class ClientsIconsPlugin(GajimPlugin):
tag = iq_obj.stanza.getTags('c')
if tag:
caps = tag[0].getAttr('node')
if not caps and iq_obj.jid == 'juick@juick.com':
caps = 'http://juick.com/caps'
if not caps:
if iq_obj.jid == 'juick@juick.com':
caps = 'http://juick.com/caps'
elif '@vk.com' in iq_obj.jid:
caps = 'vk.com'
elif 'facebook.com' in iq_obj.jid:
caps = 'facebook.com'
self.set_icon(roster.model, iter_, self.renderer_num, caps)
def gc_presence_received(self, iq_obj):

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

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