fix var name

This commit is contained in:
Yann Leboulanger 2012-08-24 09:50:50 +02:00
parent 689f8370b8
commit 95875d63c6
1 changed files with 1 additions and 1 deletions

View File

@ -4482,7 +4482,7 @@ class InvitationReceivedDialog:
sectext = _('$Contact has invited you to group chat %(room_jid)s')\
% {'room_jid': room_jid}
contact = gajim.contacts.get_first_contact_from_jid(account, jid)
contact_text = contact and contact.name or contact_jid
contact_text = contact and contact.name or jid
sectext = sectext.replace('$Contact', contact_text)
if comment: # only if not None and not ''