mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
Change teleports so the TeleportFlags are sent to the destination sim. It
can now determine if a connection is from login, teleport or crossing. Needed for a meaningful banlines implementation
This commit is contained in:
@@ -268,7 +268,7 @@ namespace OpenSim.Client.Linden
|
||||
else
|
||||
{
|
||||
string reason;
|
||||
if (scene.NewUserConnection(agentData, out reason))
|
||||
if (scene.NewUserConnection(agentData, (uint)TeleportFlags.ViaLogin, out reason))
|
||||
{
|
||||
success = true;
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ namespace OpenSim.Client.Linden
|
||||
Scene scene;
|
||||
if (TryGetRegion(regionHandle, out scene))
|
||||
{
|
||||
return scene.NewUserConnection(agent, out reason);
|
||||
return scene.NewUserConnection(agent, (uint)TeleportFlags.ViaLogin, out reason);
|
||||
}
|
||||
reason = "Region not found.";
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user