mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
minor changes to last patch
This commit is contained in:
@@ -640,10 +640,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
dm.SendGeneralAlert(msg + "\n");
|
||||
}
|
||||
|
||||
public void osRegionNotice(string agentID, string msg)
|
||||
public void osRegionNotice(LSL_Key agentID, string msg)
|
||||
{
|
||||
CheckThreatLevel(ThreatLevel.High, "osRegionNotice");
|
||||
|
||||
if (!World.Permissions.CanIssueEstateCommand(m_host.OwnerID, false))
|
||||
return;
|
||||
|
||||
IDialogModule dm = World.RequestModuleInterface<IDialogModule>();
|
||||
if (dm == null)
|
||||
return;
|
||||
|
||||
if (!UUID.TryParse(agentID, out UUID avatarID))
|
||||
return;
|
||||
|
||||
@@ -653,13 +660,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (sp.IsChildAgent || sp.IsDeleted || sp.IsInTransit || sp.IsNPC)
|
||||
return;
|
||||
|
||||
IDialogModule dm = World.RequestModuleInterface<IDialogModule>();
|
||||
if (dm == null)
|
||||
return;
|
||||
|
||||
if (!World.Permissions.CanIssueEstateCommand(m_host.OwnerID, false))
|
||||
return;
|
||||
|
||||
dm.SendAlertToUser(sp.ControllingClient, msg + "\n", false);
|
||||
}
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
int osRegionRestart(double seconds);
|
||||
int osRegionRestart(double seconds, string msg);
|
||||
void osRegionNotice(string msg);
|
||||
void osRegionNotice(string agentID, string msg);
|
||||
void osRegionNotice(LSL_Key agentID, string msg);
|
||||
bool osConsoleCommand(string Command);
|
||||
void osSetParcelMediaURL(string url);
|
||||
void osSetPrimFloatOnWater(int floatYN);
|
||||
|
||||
@@ -225,7 +225,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
m_OSSL_Functions.osRegionNotice(msg);
|
||||
}
|
||||
|
||||
public void osRegionNotice(string agentID, string msg)
|
||||
public void osRegionNotice(LSL_Key agentID, string msg)
|
||||
{
|
||||
m_OSSL_Functions.osRegionNotice(agentID, msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user