Make "show name" command display HomeURL like "show names"

user_profiles
Justin Clark-Casey (justincc) 2013-05-21 18:15:22 +01:00
parent 5c8d38d6cf
commit 434c3cf83b
1 changed files with 11 additions and 4 deletions

View File

@ -595,16 +595,23 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
return;
string[] names;
if (!TryGetUserNames(userId, out names))
UserData ud;
lock (m_UserCache)
{
if (!m_UserCache.TryGetValue(userId, out ud))
{
MainConsole.Instance.OutputFormat("No name known for user with id {0}", userId);
return;
}
}
ConsoleDisplayTable cdt = new ConsoleDisplayTable();
cdt.AddColumn("UUID", 36);
cdt.AddColumn("Name", 30);
cdt.AddRow(userId, string.Join(" ", names));
cdt.AddColumn("HomeURL", 40);
cdt.AddRow(userId, string.Join(" ", ud.FirstName, ud.LastName), ud.HomeURL);
MainConsole.Instance.Output(cdt.ToString());
}