aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer/UserManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/UserServer/UserManager.cs')
-rw-r--r--OpenSim/Grid/UserServer/UserManager.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs
index 8f2d83c..5806f5f 100644
--- a/OpenSim/Grid/UserServer/UserManager.cs
+++ b/OpenSim/Grid/UserServer/UserManager.cs
@@ -37,10 +37,13 @@ using OpenSim.Framework.UserManagement;
37 37
38namespace OpenSim.Grid.UserServer 38namespace OpenSim.Grid.UserServer
39{ 39{
40 public delegate void logOffUser(LLUUID AgentID);
41
40 public class UserManager : UserManagerBase 42 public class UserManager : UserManagerBase
41 { 43 {
42 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 44 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
43 45 public event logOffUser OnLogOffUser;
46 private logOffUser handler001 = null;
44 /// <summary> 47 /// <summary>
45 /// Deletes an active agent session 48 /// Deletes an active agent session
46 /// </summary> 49 /// </summary>
@@ -327,7 +330,11 @@ namespace OpenSim.Grid.UserServer
327 float posx = (float)Convert.ToDecimal((string)requestData["region_pos_x"]); 330 float posx = (float)Convert.ToDecimal((string)requestData["region_pos_x"]);
328 float posy = (float)Convert.ToDecimal((string)requestData["region_pos_y"]); 331 float posy = (float)Convert.ToDecimal((string)requestData["region_pos_y"]);
329 float posz = (float)Convert.ToDecimal((string)requestData["region_pos_z"]); 332 float posz = (float)Convert.ToDecimal((string)requestData["region_pos_z"]);
330 333
334 handler001 = OnLogOffUser;
335 if (handler001 != null)
336 handler001(userUUID);
337
331 LogOffUser(userUUID, RegionID, regionhandle, posx, posy, posz); 338 LogOffUser(userUUID, RegionID, regionhandle, posx, posy, posz);
332 } 339 }
333 catch (FormatException) 340 catch (FormatException)