aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorTeravus Ovares2007-11-24 00:19:48 +0000
committerTeravus Ovares2007-11-24 00:19:48 +0000
commitd7ec786244cce8b856233090349d85b4aec76206 (patch)
tree78c24962ce09c5108f63fb31cba91eb4d9fed698 /OpenSim/Region/Environment
parent*Fixed bug causing parcel prim counts to stop updating. (diff)
downloadopensim-SC_OLD-d7ec786244cce8b856233090349d85b4aec76206.zip
opensim-SC_OLD-d7ec786244cce8b856233090349d85b4aec76206.tar.gz
opensim-SC_OLD-d7ec786244cce8b856233090349d85b4aec76206.tar.bz2
opensim-SC_OLD-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 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs3
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneManager.cs2
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs14
3 files changed, 17 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index ea3283d..7bcd7bd 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -257,6 +257,7 @@ namespace OpenSim.Region.Environment.Scenes
257 { 257 {
258 ForEachScenePresence(delegate(ScenePresence avatar) 258 ForEachScenePresence(delegate(ScenePresence avatar)
259 { 259 {
260 avatar.Kick("The region is going down.");
260 avatar.ControllingClient.Stop(); 261 avatar.ControllingClient.Stop();
261 }); 262 });
262 263
@@ -638,7 +639,7 @@ namespace OpenSim.Region.Environment.Scenes
638 { 639 {
639 640
640 // What we're *supposed* to do is raytrace from the camera position given by the client to the nearest collision 641 // What we're *supposed* to do is raytrace from the camera position given by the client to the nearest collision
641 // in the direction the client supplies (the ground level that we clicked) 642 // in the direction the client supplies (the ground level that we clicked)
642 // This function is pretty crappy right now.. so we're not affecting where the newly rezzed objects go 643 // This function is pretty crappy right now.. so we're not affecting where the newly rezzed objects go
643 // Test it if you like. The console will write where it guesses a collision took place. if it thinks one did. 644 // Test it if you like. The console will write where it guesses a collision took place. if it thinks one did.
644 // It's wrong many times though. 645 // It's wrong many times though.
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs
index da553bc..e71d946 100644
--- a/OpenSim/Region/Environment/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs
@@ -144,7 +144,7 @@ namespace OpenSim.Region.Environment.Scenes
144 { 144 {
145 ForEachCurrentScene(delegate(Scene scene) { scene.Backup(); }); 145 ForEachCurrentScene(delegate(Scene scene) { scene.Backup(); });
146 } 146 }
147 147
148 public void HandleAlertCommandOnCurrentScene(string[] cmdparams) 148 public void HandleAlertCommandOnCurrentScene(string[] cmdparams)
149 { 149 {
150 ForEachCurrentScene(delegate(Scene scene) { scene.HandleAlertCommand(cmdparams); }); 150 ForEachCurrentScene(delegate(Scene scene) { scene.HandleAlertCommand(cmdparams); });
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>