diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Region/RestartModule.cs | 3 |
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) |