diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs index 8f9b513..d90309f 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | |||
@@ -266,16 +266,13 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
266 | return UUID.Zero; | 266 | return UUID.Zero; |
267 | } | 267 | } |
268 | 268 | ||
269 | public bool DeleteNPC(UUID agentID, UUID callerID, Scene scene) | 269 | public bool DeleteNPC(UUID agentID, Scene scene) |
270 | { | 270 | { |
271 | lock (m_avatars) | 271 | lock (m_avatars) |
272 | { | 272 | { |
273 | NPCAvatar av; | 273 | NPCAvatar av; |
274 | if (m_avatars.TryGetValue(agentID, out av)) | 274 | if (m_avatars.TryGetValue(agentID, out av)) |
275 | { | 275 | { |
276 | if (!CheckPermissions(av, callerID)); | ||
277 | return false; | ||
278 | |||
279 | scene.RemoveClient(agentID, false); | 276 | scene.RemoveClient(agentID, false); |
280 | m_avatars.Remove(agentID); | 277 | m_avatars.Remove(agentID); |
281 | 278 | ||