diff options
author | Teravus Ovares | 2007-11-24 00:19:48 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-24 00:19:48 +0000 |
commit | d7ec786244cce8b856233090349d85b4aec76206 (patch) | |
tree | 78c24962ce09c5108f63fb31cba91eb4d9fed698 /OpenSim/Region/Environment/Scenes/ScenePresence.cs | |
parent | *Fixed bug causing parcel prim counts to stop updating. (diff) | |
download | opensim-SC-d7ec786244cce8b856233090349d85b4aec76206.zip opensim-SC-d7ec786244cce8b856233090349d85b4aec76206.tar.gz opensim-SC-d7ec786244cce8b856233090349d85b4aec76206.tar.bz2 opensim-SC-d7ec786244cce8b856233090349d85b4aec76206.tar.xz |
* Added a nice 'The Region is going down.' message to the user when the sim owner issues 'shutdown' on the console.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 850d3a4..0cc3a7e 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -1219,6 +1219,20 @@ namespace OpenSim.Region.Environment.Scenes | |||
1219 | 1219 | ||
1220 | #endregion | 1220 | #endregion |
1221 | 1221 | ||
1222 | public void Kick(string message) | ||
1223 | { | ||
1224 | KickUserPacket kupack = new KickUserPacket(); | ||
1225 | KickUserPacket.UserInfoBlock kupackib = kupack.UserInfo; | ||
1226 | |||
1227 | kupack.UserInfo.AgentID = UUID; | ||
1228 | kupack.UserInfo.SessionID = this.ControllingClient.SessionId; | ||
1229 | |||
1230 | kupack.TargetBlock.TargetIP = (uint)0; | ||
1231 | kupack.TargetBlock.TargetPort = (ushort)0; | ||
1232 | kupack.UserInfo.Reason = Helpers.StringToField(message); | ||
1233 | ControllingClient.OutPacket(kupack, ThrottleOutPacketType.Task); | ||
1234 | |||
1235 | } | ||
1222 | /// <summary> | 1236 | /// <summary> |
1223 | /// | 1237 | /// |
1224 | /// </summary> | 1238 | /// </summary> |