aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-01-13 00:03:39 +0000
committerJustin Clark-Casey (justincc)2012-01-13 00:03:39 +0000
commit3b59af222580e6d6e1a938ab622961285bd6903c (patch)
tree3eab1b038342dbf5976f7034155e447b8a058a78 /OpenSim
parentRemoving osNpcCreateOwned(). Please use osNpcCreate(string user, string name... (diff)
downloadopensim-SC_OLD-3b59af222580e6d6e1a938ab622961285bd6903c.zip
opensim-SC_OLD-3b59af222580e6d6e1a938ab622961285bd6903c.tar.gz
opensim-SC_OLD-3b59af222580e6d6e1a938ab622961285bd6903c.tar.bz2
opensim-SC_OLD-3b59af222580e6d6e1a938ab622961285bd6903c.tar.xz
Change the default osNpcCreate() to create an 'owned' npc rather than an 'unowned' one.
An owned NPC is one that only the original creator can manipulate and delete. An unowned NPC is one that anybody with access to the osNpc* methods and knowledge of the avatar id can manipulate. This is to correct an oversight I made in the original reimplementation where I mistakenly assumed that avatar IDs could be treated as private. I am not anticipating that many people were deliberately making use of unowned npcs due to their insecure nature. If you do need an unowned NPC please call the new overloaded osCreateNpc() function with the option OS_NPC_NOT_OWNED.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 2c35f58..40d9d6f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2080,7 +2080,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2080 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard) 2080 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard)
2081 { 2081 {
2082 CheckThreatLevel(ThreatLevel.High, "osNpcCreate"); 2082 CheckThreatLevel(ThreatLevel.High, "osNpcCreate");
2083 return NpcCreate(firstname, lastname, position, notecard, false); 2083 return NpcCreate(firstname, lastname, position, notecard, true);
2084 } 2084 }
2085 2085
2086 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, int options) 2086 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, int options)