diff options
author | Dr Scofield | 2009-05-05 16:17:52 +0000 |
---|---|---|
committer | Dr Scofield | 2009-05-05 16:17:52 +0000 |
commit | e0a06f641668cd5c25a7854af2faf8a61c4053ee (patch) | |
tree | c2a4620c4bdc0e479ca16528cd9e0524529a7998 /OpenSim/Framework/Communications/Tests/LoginServiceTests.cs | |
parent | * Fix http://opensimulator.org/mantis/view.php?id=3585 (diff) | |
download | opensim-SC-e0a06f641668cd5c25a7854af2faf8a61c4053ee.zip opensim-SC-e0a06f641668cd5c25a7854af2faf8a61c4053ee.tar.gz opensim-SC-e0a06f641668cd5c25a7854af2faf8a61c4053ee.tar.bz2 opensim-SC-e0a06f641668cd5c25a7854af2faf8a61c4053ee.tar.xz |
- moving banned check and public/private check to
Scene.NewUserConnection()
- adding reason reporting
this enforces estate bans very early on and prevents us from
circulating client objects that we'd then have to retract once we
realize that the client is not allowed into the region
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/Tests/LoginServiceTests.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs index d0c1b3b..965e6b4 100644 --- a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs +++ b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs | |||
@@ -345,8 +345,9 @@ namespace OpenSim.Framework.Communications.Tests | |||
345 | { | 345 | { |
346 | } | 346 | } |
347 | 347 | ||
348 | public bool NewUserConnection(ulong regionHandle, AgentCircuitData agent) | 348 | public bool NewUserConnection(ulong regionHandle, AgentCircuitData agent, out string reason) |
349 | { | 349 | { |
350 | reason = String.Empty; | ||
350 | lock (m_regionsList) | 351 | lock (m_regionsList) |
351 | { | 352 | { |
352 | foreach (RegionInfo regInfo in m_regionsList) | 353 | foreach (RegionInfo regInfo in m_regionsList) |
@@ -355,6 +356,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
355 | return true; | 356 | return true; |
356 | } | 357 | } |
357 | } | 358 | } |
359 | reason = "Region not found"; | ||
358 | return false; | 360 | return false; |
359 | } | 361 | } |
360 | 362 | ||