aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs28
1 files changed, 16 insertions, 12 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index 18d5f0c..c37fcba 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -28,18 +28,22 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
28 28
29 public void Initialise(OpenSimMain openSim) 29 public void Initialise(OpenSimMain openSim)
30 { 30 {
31 if (openSim.ConfigSource.Configs["RemoteAdmin"].GetBoolean("enabled", false)) 31 IConfig remoteConfig = openSim.ConfigSource.Configs["RemoteAdmin"];
32 { 32 if (remoteConfig != null)
33 System.Console.WriteLine("RADMIN","Remote Admin Plugin Enabled"); 33 {
34 34 if (remoteConfig.GetBoolean("enabled", false))
35 m_app = openSim; 35 {
36 m_httpd = openSim.HttpServer; 36 System.Console.WriteLine("RADMIN", "Remote Admin Plugin Enabled");
37 37
38 m_httpd.AddXmlRPCHandler("admin_create_region", XmlRpcCreateRegionMethod); 38 m_app = openSim;
39 m_httpd.AddXmlRPCHandler("admin_shutdown", XmlRpcShutdownMethod); 39 m_httpd = openSim.HttpServer;
40 m_httpd.AddXmlRPCHandler("admin_broadcast", XmlRpcAlertMethod); 40
41 m_httpd.AddXmlRPCHandler("admin_restart", XmlRpcRestartMethod); 41 m_httpd.AddXmlRPCHandler("admin_create_region", XmlRpcCreateRegionMethod);
42 } 42 m_httpd.AddXmlRPCHandler("admin_shutdown", XmlRpcShutdownMethod);
43 m_httpd.AddXmlRPCHandler("admin_broadcast", XmlRpcAlertMethod);
44 m_httpd.AddXmlRPCHandler("admin_restart", XmlRpcRestartMethod);
45 }
46 }
43 } 47 }
44 48
45 public XmlRpcResponse XmlRpcRestartMethod(XmlRpcRequest request) 49 public XmlRpcResponse XmlRpcRestartMethod(XmlRpcRequest request)