Make the agent being kicked a child agent first so there won't be a ghost

avinationmerge
Melanie 2012-09-16 22:50:35 +02:00
parent a97436f2f1
commit a76ce4f64d
1 changed files with 2 additions and 1 deletions

View File

@ -256,7 +256,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
if (sp.IsChildAgent)
return;
sp.ControllingClient.Kick(reason);
sp.Scene.IncomingCloseAgent(sp.UUID);
sp.MakeChildAgent();
sp.ControllingClient.Close();
}
private void OnIncomingInstantMessage(GridInstantMessage msg)