aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications')
-rw-r--r--OpenSim/Region/Communications/Local/LocalLoginService.cs25
1 files changed, 24 insertions, 1 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs
index 9b71efd..e139501 100644
--- a/OpenSim/Region/Communications/Local/LocalLoginService.cs
+++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs
@@ -57,7 +57,7 @@ namespace OpenSim.Region.Communications.Local
57 /// <summary> 57 /// <summary>
58 /// Used to make requests to the local regions. 58 /// Used to make requests to the local regions.
59 /// </summary> 59 /// </summary>
60 protected IGridServices m_gridService; 60 protected LocalBackEndServices m_gridService;
61 61
62 public event LoginToRegionEvent OnLoginToRegion; 62 public event LoginToRegionEvent OnLoginToRegion;
63 63
@@ -376,5 +376,28 @@ namespace OpenSim.Region.Communications.Local
376 376
377 return new InventoryData(AgentInventoryArray, rootID); 377 return new InventoryData(AgentInventoryArray, rootID);
378 } 378 }
379
380 public override void LogOffUser(UserProfileData theUser, string message)
381 {
382 RegionInfo SimInfo;
383 try
384 {
385 SimInfo = this.m_gridService.RequestNeighbourInfo(theUser.CurrentAgent.Handle);
386
387 if (SimInfo == null)
388 {
389 m_log.Error("[LOCAL LOGIN]: Region user was in isn't currently logged in");
390 return;
391 }
392 }
393 catch (Exception)
394 {
395 m_log.Error("[LOCAL LOGIN]: Unable to look up region to log user off");
396 return;
397 }
398
399 m_gridService.TriggerLogOffUser(SimInfo.RegionHandle, theUser.ID, theUser.CurrentAgent.SecureSessionID, "Logging you off");
400 }
401
379 } 402 }
380} 403}