mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
refuse crossings if logins disabled
Please enter the commit message for your changes. Lines starting
This commit is contained in:
@@ -4532,6 +4532,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_log.DebugFormat(
|
||||
"[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.
|
||||
// That calls AddNewClient, which finally creates the ScenePresence
|
||||
int flags = GetUserFlags(cAgentData.AgentID);
|
||||
|
||||
Reference in New Issue
Block a user