if no NICKNAME is present in our vcard, use FN fiield as our default nickname.

This commit is contained in:
Yann Leboulanger 2007-04-19 19:02:56 +00:00
parent a23c825664
commit cac46db66c
1 changed files with 4 additions and 0 deletions

View File

@ -958,6 +958,10 @@ class Interface:
nick = array['NICKNAME']
if nick:
gajim.nicks[account] = nick
if not gajim.nicks[account] and array.has_key('FN'):
nick = array['FN']
if nick:
gajim.nicks[account] = nick
if self.instances[account].has_key('profile'):
win = self.instances[account]['profile']
win.set_values(array)