aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs20
1 files changed, 16 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index f79eb5d..0e1e2be 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3316,12 +3316,16 @@ namespace OpenSim.Region.Framework.Scenes
3316 /// Use NewUserConnection() directly if possible so the return type can refuse connections. 3316 /// Use NewUserConnection() directly if possible so the return type can refuse connections.
3317 /// At the moment nothing actually seems to use this event, 3317 /// At the moment nothing actually seems to use this event,
3318 /// as everything is switching to calling the NewUserConnection method directly. 3318 /// as everything is switching to calling the NewUserConnection method directly.
3319 ///
3320 /// Now obsoleting this because it doesn't handle teleportFlags propertly
3321 ///
3319 /// </summary> 3322 /// </summary>
3320 /// <param name="agent"></param> 3323 /// <param name="agent"></param>
3324 [Obsolete("Please call NewUserConnection directly.")]
3321 public void HandleNewUserConnection(AgentCircuitData agent) 3325 public void HandleNewUserConnection(AgentCircuitData agent)
3322 { 3326 {
3323 string reason; 3327 string reason;
3324 NewUserConnection(agent, out reason); 3328 NewUserConnection(agent, 0, out reason);
3325 } 3329 }
3326 3330
3327 /// <summary> 3331 /// <summary>
@@ -3334,8 +3338,16 @@ namespace OpenSim.Region.Framework.Scenes
3334 /// <param name="reason">Outputs the reason for the false response on this string</param> 3338 /// <param name="reason">Outputs the reason for the false response on this string</param>
3335 /// <returns>True if the region accepts this agent. False if it does not. False will 3339 /// <returns>True if the region accepts this agent. False if it does not. False will
3336 /// also return a reason.</returns> 3340 /// also return a reason.</returns>
3337 public bool NewUserConnection(AgentCircuitData agent, out string reason) 3341 public bool NewUserConnection(AgentCircuitData agent, uint teleportFlags, out string reason)
3338 { 3342 {
3343 //Teleport flags:
3344 //
3345 // TeleportFlags.ViaGodlikeLure - Border Crossing
3346 // TeleportFlags.ViaLogin - Login
3347 // TeleportFlags.TeleportFlags.ViaLure - Teleport request sent by another user
3348 // TeleportFlags.ViaLandmark | TeleportFlags.ViaLocation | TeleportFlags.ViaLandmark | TeleportFlags.Default - Regular Teleport
3349
3350
3339 if (loginsdisabled) 3351 if (loginsdisabled)
3340 { 3352 {
3341 reason = "Logins Disabled"; 3353 reason = "Logins Disabled";
@@ -3343,9 +3355,9 @@ namespace OpenSim.Region.Framework.Scenes
3343 } 3355 }
3344 // Don't disable this log message - it's too helpful 3356 // Don't disable this log message - it's too helpful
3345 m_log.InfoFormat( 3357 m_log.InfoFormat(
3346 "[CONNECTION BEGIN]: Region {0} told of incoming {1} agent {2} {3} {4} (circuit code {5})", 3358 "[CONNECTION BEGIN]: Region {0} told of incoming {1} agent {2} {3} {4} (circuit code {5}, teleportflags {6})",
3347 RegionInfo.RegionName, (agent.child ? "child" : "root"), agent.firstname, agent.lastname, 3359 RegionInfo.RegionName, (agent.child ? "child" : "root"), agent.firstname, agent.lastname,
3348 agent.AgentID, agent.circuitcode); 3360 agent.AgentID, agent.circuitcode, teleportFlags);
3349 3361
3350 reason = String.Empty; 3362 reason = String.Empty;
3351 if (!AuthenticateUser(agent, out reason)) 3363 if (!AuthenticateUser(agent, out reason))