diff options
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(); |