refuse crossings if logins disabled

Please enter the commit message for your changes. Lines starting
avinationmerge
UbitUmarov 2014-10-21 19:22:51 +01:00
parent b1ccf3f110
commit 31c036c044
1 changed files with 7 additions and 0 deletions

View File

@ -4532,6 +4532,13 @@ namespace OpenSim.Region.Framework.Scenes
m_log.DebugFormat( m_log.DebugFormat(
"[SCENE]: Incoming child agent update for {0} in {1}", cAgentData.AgentID, RegionInfo.RegionName); "[SCENE]: Incoming child agent update for {0} in {1}", cAgentData.AgentID, RegionInfo.RegionName);
if (!LoginsEnabled)
{
// reason = "Logins Disabled";
m_log.DebugFormat(
"[SCENE]: update for {0} in {1} refused: Logins Disabled", cAgentData.AgentID, RegionInfo.RegionName);
return false;
}
// We have to wait until the viewer contacts this region after receiving EAC. // We have to wait until the viewer contacts this region after receiving EAC.
// That calls AddNewClient, which finally creates the ScenePresence // That calls AddNewClient, which finally creates the ScenePresence
int flags = GetUserFlags(cAgentData.AgentID); int flags = GetUserFlags(cAgentData.AgentID);