Revert "Take firstname and lastname from UserAgentService response"
This reverts commit de00d96c9b.
This commit is contained in:
@@ -1909,18 +1909,11 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
account = new UserAccount();
|
account = new UserAccount();
|
||||||
|
if (info.ContainsKey("user_flags"))
|
||||||
|
account.UserFlags = (int)info["user_flags"];
|
||||||
|
|
||||||
// Needed, user may have changed name while our grid has old name cached
|
if (info.ContainsKey("user_created"))
|
||||||
if (info.TryGetValue("user_firstname", out object firstname))
|
account.Created = (int)info["user_created"];
|
||||||
account.FirstName = (string)firstname;
|
|
||||||
if (info.TryGetValue("user_lastname", out object lastname))
|
|
||||||
account.LastName = (string)lastname;
|
|
||||||
|
|
||||||
if (info.TryGetValue("user_flags", out object uflags))
|
|
||||||
account.UserFlags = (int)uflags;
|
|
||||||
|
|
||||||
if (info.TryGetValue("user_created", out object created))
|
|
||||||
account.Created = (int)created;
|
|
||||||
|
|
||||||
account.UserTitle = "HG Visitor";
|
account.UserTitle = "HG Visitor";
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user