put back getAgentIP bug restricted, script owner must be a Administrator (god)
parent
b0a0163253
commit
e243dd0519
|
@ -1097,6 +1097,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string osGetAgentIP(string agent)
|
||||||
|
{
|
||||||
|
CheckThreatLevel(); // user god is the restriction
|
||||||
|
if(!(World.Permissions.IsGod(m_host.OwnerID)))
|
||||||
|
return "";
|
||||||
|
|
||||||
|
UUID avatarID = (UUID)agent;
|
||||||
|
|
||||||
|
m_host.AddScriptLPS(1);
|
||||||
|
if (World.Entities.ContainsKey((UUID)agent) && World.Entities[avatarID] is ScenePresence)
|
||||||
|
{
|
||||||
|
ScenePresence target = (ScenePresence)World.Entities[avatarID];
|
||||||
|
return target.ControllingClient.RemoteEndPoint.Address.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
// fall through case, just return nothing
|
||||||
|
return "";
|
||||||
|
}
|
||||||
// Adam's super super custom animation functions
|
// Adam's super super custom animation functions
|
||||||
public void osAvatarPlayAnimation(string avatar, string animation)
|
public void osAvatarPlayAnimation(string avatar, string animation)
|
||||||
{
|
{
|
||||||
|
|
|
@ -145,6 +145,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||||
|
|
||||||
// Avatar Info Commands
|
// Avatar Info Commands
|
||||||
LSL_List osGetAgents();
|
LSL_List osGetAgents();
|
||||||
|
string osGetAgentIP(string agent);
|
||||||
|
|
||||||
// Teleport commands
|
// Teleport commands
|
||||||
void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat);
|
void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat);
|
||||||
|
|
|
@ -282,6 +282,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
return m_OSSL_Functions.osGetAgents();
|
return m_OSSL_Functions.osGetAgents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string osGetAgentIP(string agent)
|
||||||
|
{
|
||||||
|
return m_OSSL_Functions.osGetAgentIP(agent);
|
||||||
|
}
|
||||||
|
|
||||||
// Animation Functions
|
// Animation Functions
|
||||||
|
|
||||||
public void osAvatarPlayAnimation(string avatar, string animation)
|
public void osAvatarPlayAnimation(string avatar, string animation)
|
||||||
|
|
|
@ -86,6 +86,7 @@
|
||||||
; Allow_osDrawPolygon = true ; no level check
|
; Allow_osDrawPolygon = true ; no level check
|
||||||
; Allow_osDrawRectangle = true ; no level check
|
; Allow_osDrawRectangle = true ; no level check
|
||||||
; Allow_osDrawText = true ; no level check
|
; Allow_osDrawText = true ; no level check
|
||||||
|
; Allow_osGetAgentIP = ---- ;restricted to Administrators (GOD)
|
||||||
Allow_osGetAgents = ${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osGetAgents = ${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osGetAvatarList = ${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osGetAvatarList = ${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
; Allow_osGetCurrentSunHour = true ; no level check
|
; Allow_osGetCurrentSunHour = true ; no level check
|
||||||
|
@ -191,7 +192,6 @@
|
||||||
Allow_osForceCreateLink = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osForceCreateLink = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osForceDropAttachment = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osForceDropAttachment = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osForceDropAttachmentAt = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osForceDropAttachmentAt = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osGetAgentIP = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
|
||||||
Allow_osGetLinkPrimitiveParams = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osGetLinkPrimitiveParams = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osGetPhysicsEngineType = true
|
Allow_osGetPhysicsEngineType = true
|
||||||
Allow_osGetPrimitiveParams = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osGetPrimitiveParams = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
|
|
Loading…
Reference in New Issue