From 92fa5975bf36a0512148e245f9235762e6975e7a Mon Sep 17 00:00:00 2001 From: lickx <11088547+lickx@users.noreply.github.com> Date: Wed, 28 Jan 2026 23:56:18 +0100 Subject: [PATCH] Revert "Take firstname and lastname from UserAgentService response" This reverts commit de00d96c9beda630a9ea5a3ec5406c59d3f55e42. --- .../Avatar/UserProfiles/UserProfileModule.cs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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;