diff options
author | Teravus Ovares | 2008-01-20 23:08:50 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-01-20 23:08:50 +0000 |
commit | a3851b3812aae6221714b1e61656d0853fce7124 (patch) | |
tree | 8867b4d6c433b0230f276f88a95625695fb71390 /OpenSim/Region/Communications | |
parent | Graceful failure of teleport to unavailable regions might actually work now. (diff) | |
download | opensim-SC-a3851b3812aae6221714b1e61656d0853fce7124.zip opensim-SC-a3851b3812aae6221714b1e61656d0853fce7124.tar.gz opensim-SC-a3851b3812aae6221714b1e61656d0853fce7124.tar.bz2 opensim-SC-a3851b3812aae6221714b1e61656d0853fce7124.tar.xz |
* Added hooks for logout to all IUserService and all that implement it.
* Added a Logout message with a name on the console
* Added a *fixme* message to figure out why the current agent session is null
* After updating you may notice that there's a login <user> and also a logout<user>
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | 26 |
2 files changed, 28 insertions, 1 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 7cd77db..2ca9022 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | |||
@@ -375,6 +375,9 @@ namespace OpenSim.Region.Communications.OGS1 | |||
375 | return neighbours; | 375 | return neighbours; |
376 | } | 376 | } |
377 | 377 | ||
378 | |||
379 | |||
380 | |||
378 | /// <summary> | 381 | /// <summary> |
379 | /// Performs a XML-RPC query against the grid server returning mapblock information in the specified coordinates | 382 | /// Performs a XML-RPC query against the grid server returning mapblock information in the specified coordinates |
380 | /// </summary> | 383 | /// </summary> |
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index 36ab4bb..2cf3665 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |||
@@ -130,7 +130,31 @@ namespace OpenSim.Region.Communications.OGS1 | |||
130 | 130 | ||
131 | return buddylist; | 131 | return buddylist; |
132 | } | 132 | } |
133 | 133 | ||
134 | /// <summary> | ||
135 | /// Logs off a user on the user server | ||
136 | /// </summary> | ||
137 | /// <param name="UserID">UUID of the user</param> | ||
138 | /// <param name="regionData">UUID of the Region</param> | ||
139 | /// <param name="posx">final position x</param> | ||
140 | /// <param name="posy">final position y</param> | ||
141 | /// <param name="posz">final position z</param> | ||
142 | public void LogOffUser(LLUUID userid, LLUUID regionid, ulong regionhandle, float posx, float posy, float posz) | ||
143 | { | ||
144 | Hashtable param = new Hashtable(); | ||
145 | param["avatar_uuid"] = userid.UUID.ToString(); | ||
146 | param["region_uuid"] = regionid.UUID.ToString(); | ||
147 | param["region_handle"] = regionhandle.ToString(); | ||
148 | param["region_pos_x"] = posx.ToString(); | ||
149 | param["region_pos_y"] = posy.ToString(); | ||
150 | param["region_pos_z"] = posz.ToString(); | ||
151 | |||
152 | IList parameters = new ArrayList(); | ||
153 | parameters.Add(param); | ||
154 | XmlRpcRequest req = new XmlRpcRequest("logout_of_simulator", parameters); | ||
155 | XmlRpcResponse resp = req.Send(m_parent.NetworkServersInfo.UserURL, 3000); | ||
156 | |||
157 | } | ||
134 | public UserProfileData GetUserProfile(string firstName, string lastName) | 158 | public UserProfileData GetUserProfile(string firstName, string lastName) |
135 | { | 159 | { |
136 | return GetUserProfile(firstName + " " + lastName); | 160 | return GetUserProfile(firstName + " " + lastName); |