To keep things consistent allowing an UnregisterModuleInterface... Force the GodModule to request the dialog module interface on a kickuser call and not to use the 'in memory cached one'. Thanks Ar3s for locating the offending inconsistency.
parent
bf469819a6
commit
b2dfa6f022
|
@ -121,6 +121,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
|
|||
|
||||
if (sp != null || agentID == kickUserID)
|
||||
{
|
||||
m_dialogModule = m_scene.RequestModuleInterface<IDialogModule>();
|
||||
if (m_scene.Permissions.IsGod(godID))
|
||||
{
|
||||
if (kickflags == 0)
|
||||
|
@ -162,19 +163,26 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
|
|||
if (kickflags == 1)
|
||||
{
|
||||
sp.AllowMovement = false;
|
||||
if (m_dialogModule != null)
|
||||
{
|
||||
m_dialogModule.SendAlertToUser(agentID, Utils.BytesToString(reason));
|
||||
m_dialogModule.SendAlertToUser(godID, "User Frozen");
|
||||
}
|
||||
}
|
||||
|
||||
if (kickflags == 2)
|
||||
{
|
||||
sp.AllowMovement = true;
|
||||
if (m_dialogModule != null)
|
||||
{
|
||||
m_dialogModule.SendAlertToUser(agentID, Utils.BytesToString(reason));
|
||||
m_dialogModule.SendAlertToUser(godID, "User Unfrozen");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_dialogModule != null)
|
||||
m_dialogModule.SendAlertToUser(godID, "Kick request denied");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue