do not ask vcards when entering irc rooms as irc transport reply by messages.

This commit is contained in:
Yann Leboulanger 2006-03-15 15:11:31 +00:00
parent d8bfdd60f0
commit d53c5eff1c
1 changed files with 3 additions and 1 deletions

View File

@ -762,7 +762,9 @@ class GroupchatControl(ChatControlBase):
gajim.contacts.add_gc_contact(self.account, gc_contact)
self.draw_contact(nick)
self.draw_avatar(nick)
if gajim.config.get('ask_avatars_on_startup'):
# Do not ask avatar to irc rooms as irc transports reply with messages
if gajim.config.get('ask_avatars_on_startup') and \
not self.room_jid.startswith('irc'):
fjid = self.room_jid + '/' + nick
pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(fjid, True)
if pixbuf == 'ask':