diff options
author | Teravus Ovares | 2007-11-24 03:28:42 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-24 03:28:42 +0000 |
commit | 944b118c622159c87e7f89c05892458d88797d58 (patch) | |
tree | 576fff3c7791e3df87425d5da862f5c70ec5c0f6 /OpenSim/Region/ClientStack/ClientView.cs | |
parent | Make remoting errors because of missing adjacent regions a little more user a... (diff) | |
download | opensim-SC_OLD-944b118c622159c87e7f89c05892458d88797d58.zip opensim-SC_OLD-944b118c622159c87e7f89c05892458d88797d58.tar.gz opensim-SC_OLD-944b118c622159c87e7f89c05892458d88797d58.tar.bz2 opensim-SC_OLD-944b118c622159c87e7f89c05892458d88797d58.tar.xz |
* Added a way for the Region master user to kick individual users from their sim with a custom message. Their client says, "You've been logged off of secondlife, <Your custom message here> and logs them off.
* Added a way for the Region master user to kick *ALL* users from *ALL* their regions in the estate with a custom message.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index e6712fe..fbe66db 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -308,7 +308,20 @@ namespace OpenSim.Region.ClientStack | |||
308 | 308 | ||
309 | ClientThread.Abort(); | 309 | ClientThread.Abort(); |
310 | } | 310 | } |
311 | public void Kick(string message) | ||
312 | { | ||
313 | KickUserPacket kupack = new KickUserPacket(); | ||
314 | |||
315 | kupack.UserInfo.AgentID = AgentId; | ||
316 | kupack.UserInfo.SessionID = SessionId; | ||
317 | |||
318 | kupack.TargetBlock.TargetIP = (uint)0; | ||
319 | kupack.TargetBlock.TargetPort = (ushort)0; | ||
320 | kupack.UserInfo.Reason = Helpers.StringToField(message); | ||
321 | OutPacket(kupack, ThrottleOutPacketType.Task); | ||
311 | 322 | ||
323 | |||
324 | } | ||
312 | public void Stop() | 325 | public void Stop() |
313 | { | 326 | { |
314 | clientPingTimer.Stop(); | 327 | clientPingTimer.Stop(); |