From 7a142217543e7d1066d2d8f70a926483d0bf40a9 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Tue, 17 Sep 2013 00:02:36 +0100 Subject: [PATCH] Fix issue in recent 3f0fa9f7 where the code start adding unknown user cache entries with no name --- .../Framework/UserManagement/UserManagementModule.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs index 25e8d69140..63f78ac971 100644 --- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs +++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs @@ -602,8 +602,11 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement user.LastName = "@unknown"; } } + if (parts.Length >= 2) user.FirstName = parts[1].Replace(' ', '.'); + + AddUserInternal(user); } // To avoid issues with clients, particularly Hypergrid ones, permanently caching @@ -618,8 +621,6 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement // user.FirstName = "Unknown"; // user.LastName = "UserUMMAU4"; // } - - AddUserInternal(user); } }