From 2ea5f09ed363345c76b70cfa706fcdfe05ae5801 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 20 Oct 2018 14:07:01 +0100 Subject: Remove NPCs from UserManagement when removed --- OpenSim/Region/Framework/Scenes/Scene.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim') 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: if (sp != null) { sp.ControllingClient.Close(force, force); + + if(sp.IsNPC && UserManagementModule != null) + UserManagementModule.RemoveUser(sp.UUID); + return true; } -- cgit v1.1