don't request jabber:iq:last and jabber:iq:version to real jid in a (semi) anonymous room, even if we're moderator and we know the real JID. Fixes #3454

This commit is contained in:
Yann Leboulanger 2008-07-11 06:21:19 +00:00
parent 4db9685849
commit 3f838e5f3e
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ class VcardWindow:
# Get real jid
if gc_contact:
if gc_contact.jid:
# Don't use real jid if room is (semi-)anonymous
gc_control = gajim.interface.msg_win_mgr.get_gc_control(
gc_contact.room_jid, account)
if gc_contact.jid and not gc_control.is_anonymous:
self.real_jid = gc_contact.jid
if gc_contact.resource:
self.real_jid += '/' + gc_contact.resource