mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Make sure to prefix NPC names with "NPC:" so they can't be mistaken for users
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user