From 38ae4792494f6de71fbd3876f0c2449e7c49e4cc Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 7 Jan 2012 02:49:52 +0100 Subject: [PATCH] Make sure to prefix NPC names with "NPC:" so they can't be mistaken for users --- .../ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 6530f140c1..86bfbf056b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -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(); if (module != null) {