From 2ea5f09ed363345c76b70cfa706fcdfe05ae5801 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 20 Oct 2018 14:07:01 +0100 Subject: [PATCH] Remove NPCs from UserManagement when removed --- OpenSim/Region/Framework/Scenes/Scene.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index e638d9a1de..a21b4f7bcd 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; }