mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
same for inworld kicks
This commit is contained in:
@@ -276,6 +276,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
|
||||
{
|
||||
if(sp.IsDeleted || sp.IsChildAgent)
|
||||
return;
|
||||
if (sp.IsNPC)
|
||||
{
|
||||
INPCModule npcmodule = sp.Scene.RequestModuleInterface<INPCModule>();
|
||||
if (npcmodule != null)
|
||||
{
|
||||
npcmodule.DeleteNPC(sp.UUID, sp.Scene);
|
||||
return;
|
||||
}
|
||||
}
|
||||
sp.ControllingClient.Kick(reason);
|
||||
sp.Scene.CloseAgent(sp.UUID, true);
|
||||
}
|
||||
@@ -311,6 +320,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
|
||||
return;
|
||||
}
|
||||
|
||||
if (sp.IsNPC)
|
||||
{
|
||||
INPCModule npcmodule = sp.Scene.RequestModuleInterface<INPCModule>();
|
||||
if (npcmodule != null)
|
||||
{
|
||||
npcmodule.DeleteNPC(sp.UUID, sp.Scene);
|
||||
return;
|
||||
}
|
||||
}
|
||||
sp.ControllingClient.Kick(reason);
|
||||
sp.Scene.CloseAgent(sp.UUID, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user