if no name is provided, name = jid

This commit is contained in:
Yann Leboulanger 2004-11-18 19:21:20 +00:00
parent 70d41ba7cb
commit cb7e5396df
1 changed files with 4 additions and 1 deletions

View File

@ -2341,7 +2341,10 @@ class plugin:
#TODO if it was the only one in its group, remove the group
return
for user in users:
user.name = array[1]
name = array[1]
if not name:
name = jid
user.name = name
user.sub = array[2]
user.ask = array[3]
user.groups = array[4]