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:
Melanie
2009-12-29 18:35:06 +00:00
parent bca2afdb3c
commit 0b5cdc539c
13 changed files with 44 additions and 26 deletions

View File

@@ -557,7 +557,7 @@ namespace OpenSim.Region.CoreModules.InterGrid
// Call 'new user' event handler
string reason;
if (!homeScene.NewUserConnection(agentData, out reason))
if (!homeScene.NewUserConnection(agentData, (uint)TeleportFlags.ViaLogin, out reason))
{
responseMap["connect"] = OSD.FromBoolean(false);
responseMap["message"] = OSD.FromString(String.Format("Connection refused: {0}", reason));