aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2010-11-25 04:16:34 +0100
committerMelanie2010-11-25 04:06:25 +0000
commit2d2098f5dae8213a28cf6aa9970c476c952d76d2 (patch)
tree8672d5707fee863435d658e050848818a1863a1c
parentChange all restarting to use the restart module. Remove hardcoded behavior (diff)
downloadopensim-SC-2d2098f5dae8213a28cf6aa9970c476c952d76d2.zip
opensim-SC-2d2098f5dae8213a28cf6aa9970c476c952d76d2.tar.gz
opensim-SC-2d2098f5dae8213a28cf6aa9970c476c952d76d2.tar.bz2
opensim-SC-2d2098f5dae8213a28cf6aa9970c476c952d76d2.tar.xz
Export the module interface for restart
-rw-r--r--OpenSim/Region/CoreModules/World/Region/RestartModule.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Region/RestartModule.cs b/OpenSim/Region/CoreModules/World/Region/RestartModule.cs
index 5a5239a..c65aa6a 100644
--- a/OpenSim/Region/CoreModules/World/Region/RestartModule.cs
+++ b/OpenSim/Region/CoreModules/World/Region/RestartModule.cs
@@ -64,7 +64,7 @@ namespace OpenSim.Region.CoreModules.World.Region
64 public void AddRegion(Scene scene) 64 public void AddRegion(Scene scene)
65 { 65 {
66 m_Scene = scene; 66 m_Scene = scene;
67 m_DialogModule = m_Scene.RequestModuleInterface<IDialogModule>(); 67 scene.RegisterModuleInterface<IRestartModule>(this);
68 MainConsole.Instance.Commands.AddCommand("RestartModule", 68 MainConsole.Instance.Commands.AddCommand("RestartModule",
69 false, "region restart bluebox", 69 false, "region restart bluebox",
70 "region restart bluebox <message> <time> ...", 70 "region restart bluebox <message> <time> ...",
@@ -81,6 +81,7 @@ namespace OpenSim.Region.CoreModules.World.Region
81 81
82 public void RegionLoaded(Scene scene) 82 public void RegionLoaded(Scene scene)
83 { 83 {
84 m_DialogModule = m_Scene.RequestModuleInterface<IDialogModule>();
84 } 85 }
85 86
86 public void RemoveRegion(Scene scene) 87 public void RemoveRegion(Scene scene)