mirror of
https://github.com/opensim/opensim.git
synced 2026-07-14 03:15:36 +08:00
Mantis#1700. Thank you, Melanie for a patch that:
Lets osSetParcelMediaTime honor the AllowOSComamnds setting
This commit is contained in:
@@ -586,6 +586,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
//for testing purposes only
|
||||
public void osSetParcelMediaTime(double time)
|
||||
{
|
||||
if (!m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false))
|
||||
{
|
||||
OSSLError("osSetParcelMediaTime: permission denied");
|
||||
return;
|
||||
}
|
||||
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
World.ParcelMediaSetTime((float)time);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user