aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs22
1 files changed, 20 insertions, 2 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index d4a11d9..8cd6fc6 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -36,12 +36,30 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
36 36
37 m_httpd.AddXmlRPCHandler("admin_create_region", XmlRpcCreateRegionMethod); 37 m_httpd.AddXmlRPCHandler("admin_create_region", XmlRpcCreateRegionMethod);
38 m_httpd.AddXmlRPCHandler("admin_shutdown", XmlRpcShutdownMethod); 38 m_httpd.AddXmlRPCHandler("admin_shutdown", XmlRpcShutdownMethod);
39 m_httpd.AddXmlRPCHandler("admin_broadcast", XmlRpcAlertMethod);
39 } 40 }
40 } 41 }
41 42
43 public XmlRpcResponse XmlRpcAlertMethod(XmlRpcRequest request)
44 {
45 XmlRpcResponse response = new XmlRpcResponse();
46 Hashtable requestData = (Hashtable)request.Params[0];
47
48 string message = (string)requestData["message"];
49 MainLog.Instance.Verbose("RADMIN", "Broadcasting: " + message);
50
51 Hashtable responseData = new Hashtable();
52 responseData["accepted"] = "true";
53 response.Value = responseData;
54
55 m_app.SceneManager.SendGeneralMessage(message);
56
57 return response;
58 }
59
42 public XmlRpcResponse XmlRpcShutdownMethod(XmlRpcRequest request) 60 public XmlRpcResponse XmlRpcShutdownMethod(XmlRpcRequest request)
43 { 61 {
44 MainLog.Instance.Verbose("CONTROLLER", "Recieved Shutdown Administrator Request"); 62 MainLog.Instance.Verbose("RADMIN", "Recieved Shutdown Administrator Request");
45 XmlRpcResponse response = new XmlRpcResponse(); 63 XmlRpcResponse response = new XmlRpcResponse();
46 Hashtable requestData = (Hashtable)request.Params[0]; 64 Hashtable requestData = (Hashtable)request.Params[0];
47 65
@@ -89,7 +107,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
89 107
90 public XmlRpcResponse XmlRpcCreateRegionMethod(XmlRpcRequest request) 108 public XmlRpcResponse XmlRpcCreateRegionMethod(XmlRpcRequest request)
91 { 109 {
92 MainLog.Instance.Verbose("CONTROLLER", "Recieved Create Region Administrator Request"); 110 MainLog.Instance.Verbose("RADMIN", "Recieved Create Region Administrator Request");
93 XmlRpcResponse response = new XmlRpcResponse(); 111 XmlRpcResponse response = new XmlRpcResponse();
94 Hashtable requestData = (Hashtable)request.Params[0]; 112 Hashtable requestData = (Hashtable)request.Params[0];
95 113