In GetDisplayNames, if user last name is Resident then only send first name for display.

This is to match existing behaviour with UDP behaviour where this is masked out.
And to make it consistent with other places where viewers mask this out themselves.
Relates to http://opensimulator.org/mantis/view.php?id=7408
0.8.1-post-fixes
Justin Clark-Casey (justincc) 2015-01-23 23:10:10 +00:00
parent 840e440541
commit a29d53986a
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ namespace OpenSim.Capabilities.Handlers
OSDMap osdname = new OSDMap();
osdname["display_name_next_update"] = OSD.FromDate(DateTime.MinValue);
osdname["display_name_expires"] = OSD.FromDate(DateTime.Now.AddMonths(1));
osdname["display_name"] = OSD.FromString(name);
osdname["display_name"] = parts[1] != "Resident" ? OSD.FromString(name) : OSD.FromString(parts[0]);
osdname["legacy_first_name"] = parts[0];
osdname["legacy_last_name"] = parts[1];
osdname["username"] = "";