Fix issue in recent 3f0fa9f7 where the code start adding unknown user cache entries with no name

0.7.6-extended
Justin Clark-Casey (justincc) 2013-09-17 00:02:36 +01:00
parent d5a3139b05
commit 7a14221754
1 changed files with 3 additions and 2 deletions

View File

@ -602,8 +602,11 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
user.LastName = "@unknown"; user.LastName = "@unknown";
} }
} }
if (parts.Length >= 2) if (parts.Length >= 2)
user.FirstName = parts[1].Replace(' ', '.'); user.FirstName = parts[1].Replace(' ', '.');
AddUserInternal(user);
} }
// To avoid issues with clients, particularly Hypergrid ones, permanently caching // To avoid issues with clients, particularly Hypergrid ones, permanently caching
@ -618,8 +621,6 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
// user.FirstName = "Unknown"; // user.FirstName = "Unknown";
// user.LastName = "UserUMMAU4"; // user.LastName = "UserUMMAU4";
// } // }
AddUserInternal(user);
} }
} }