diff options
author | Justin Clark-Casey (justincc) | 2011-08-12 00:51:05 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-12 00:51:05 +0100 |
commit | 65c4b8d37b304c4b6c09c0c4b07184c4a7ffda7d (patch) | |
tree | 4fd5b22acde6f2b27b38f19b809b653b52846650 /OpenSim/Region/OptionalModules/World | |
parent | Allow the osNpcCreate() function to accept a notecard name or asset for initi... (diff) | |
download | opensim-SC-65c4b8d37b304c4b6c09c0c4b07184c4a7ffda7d.zip opensim-SC-65c4b8d37b304c4b6c09c0c4b07184c4a7ffda7d.tar.gz opensim-SC-65c4b8d37b304c4b6c09c0c4b07184c4a7ffda7d.tar.bz2 opensim-SC-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
Diffstat (limited to 'OpenSim/Region/OptionalModules/World')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | 2 |
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() |