Make sure to prefix NPC names with "NPC:" so they can't be mistaken for users

avinationmerge
Melanie 2012-01-07 02:49:52 +01:00
parent 70157a4ec5
commit 38ae479249
1 changed files with 6 additions and 0 deletions

View File

@ -2100,6 +2100,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
private LSL_Key NpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, bool owned)
{
if (firstname != String.Empty || lastname != String.Empty)
{
if (firstname != "Shown outfit:")
firstname = "NPC: " + firstname;
}
INPCModule module = World.RequestModuleInterface<INPCModule>();
if (module != null)
{