mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
* Added XMLRPC Controller Module to OpenSimMain which allows XML-RPC queries to be sent to the core application.
* Disabled by default, but has two functions so far -- shutdown (timed or now), and create-region. * Added SendGeneralAlert function to SceneManager allowing all-user alerts to be sent from OpenSimMain.
This commit is contained in:
@@ -1319,7 +1319,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
SendAlertToUser(user, reason, false);
|
||||
}
|
||||
|
||||
|
||||
public void SendGeneralAlert(string message)
|
||||
{
|
||||
foreach (ScenePresence presence in m_scenePresences.Values)
|
||||
|
||||
@@ -150,6 +150,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
ForEachCurrentScene(delegate(Scene scene) { scene.HandleAlertCommand(cmdparams); });
|
||||
}
|
||||
|
||||
public void SendGeneralMessage(string msg)
|
||||
{
|
||||
ForEachCurrentScene(delegate(Scene scene)
|
||||
{
|
||||
scene.SendGeneralAlert(msg);
|
||||
});
|
||||
}
|
||||
|
||||
public bool TrySetCurrentScene(string regionName)
|
||||
{
|
||||
if ((String.Compare(regionName, "root") == 0) || (String.Compare(regionName, "..") == 0))
|
||||
|
||||
Reference in New Issue
Block a user