diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs index 3a33fc8732..756f29ed43 100644 --- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs @@ -1909,18 +1909,11 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles return false; 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.TryGetValue("user_firstname", out object firstname)) - 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; + if (info.ContainsKey("user_created")) + account.Created = (int)info["user_created"]; account.UserTitle = "HG Visitor"; return true;