diff options
author | UbitUmarov | 2018-10-20 14:07:01 +0100 |
---|---|---|
committer | UbitUmarov | 2018-10-20 14:07:01 +0100 |
commit | 2ea5f09ed363345c76b70cfa706fcdfe05ae5801 (patch) | |
tree | 30ae8f7b9b613ef2973331b1efc9f078be56efb0 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | add RemoveUser to UserManagement (diff) | |
download | opensim-SC-2ea5f09ed363345c76b70cfa706fcdfe05ae5801.zip opensim-SC-2ea5f09ed363345c76b70cfa706fcdfe05ae5801.tar.gz opensim-SC-2ea5f09ed363345c76b70cfa706fcdfe05ae5801.tar.bz2 opensim-SC-2ea5f09ed363345c76b70cfa706fcdfe05ae5801.tar.xz |
Remove NPCs from UserManagement when removed
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index e638d9a..a21b4f7 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4798,6 +4798,10 @@ Label_GroupsDone: | |||
4798 | if (sp != null) | 4798 | if (sp != null) |
4799 | { | 4799 | { |
4800 | sp.ControllingClient.Close(force, force); | 4800 | sp.ControllingClient.Close(force, force); |
4801 | |||
4802 | if(sp.IsNPC && UserManagementModule != null) | ||
4803 | UserManagementModule.RemoveUser(sp.UUID); | ||
4804 | |||
4801 | return true; | 4805 | return true; |
4802 | } | 4806 | } |
4803 | 4807 | ||