From 69ec85f4911de3218e0efb910fdbb1725e81e4ae Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 17 Sep 2013 00:02:36 +0100 Subject: Fix issue in recent 3f0fa9f7 where the code start adding unknown user cache entries with no name --- .../CoreModules/Framework/UserManagement/UserManagementModule.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs index 25e8d69..63f78ac 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); } } -- cgit v1.1