aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-12 00:51:05 +0100
committerJustin Clark-Casey (justincc)2011-08-12 00:51:05 +0100
commit65c4b8d37b304c4b6c09c0c4b07184c4a7ffda7d (patch)
tree4fd5b22acde6f2b27b38f19b809b653b52846650
parentAllow the osNpcCreate() function to accept a notecard name or asset for initi... (diff)
downloadopensim-SC_OLD-65c4b8d37b304c4b6c09c0c4b07184c4a7ffda7d.zip
opensim-SC_OLD-65c4b8d37b304c4b6c09c0c4b07184c4a7ffda7d.tar.gz
opensim-SC_OLD-65c4b8d37b304c4b6c09c0c4b07184c4a7ffda7d.tar.bz2
opensim-SC_OLD-65c4b8d37b304c4b6c09c0c4b07184c4a7ffda7d.tar.xz
Fix kicking of NPCs via "kick user" console command.
Needed to hook up the Close() function in the NPCAvatar IClientAPI implementation, which [unfortunately] is still needed
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs
index d63c2a6..4441579 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs
@@ -842,6 +842,8 @@ namespace OpenSim.Region.OptionalModules.World.NPC
842 842
843 public void Close() 843 public void Close()
844 { 844 {
845 // Remove ourselves from the scene
846 m_scene.RemoveClient(AgentId, false);
845 } 847 }
846 848
847 public void Start() 849 public void Start()