From e87195d1bdf572875d622540cf0e1326eda8d105 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 8 Oct 2008 01:44:35 +0000 Subject: Mantis#1906. Thank you kindly, Idb for a patch that: Removed cache accesses to obtain sensed object/avatar name, it is already available. --- .../Shared/Api/Implementation/Plugins/SensorRepeat.cs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index 9b0bc5b..c4240d8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs @@ -237,24 +237,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins if (keep && (ts.name.Length > 0)) { - string avatarname=null; - string objectname=null; - string entname =ent.Name; - - // try avatar username surname - CachedUserInfo profile = m_CmdManager.m_ScriptEngine.World.CommsManager.UserProfileCacheService.GetUserDetails(ent.UUID); - if (profile != null && profile.UserProfile != null) - { - avatarname = profile.UserProfile.FirstName + " " + profile.UserProfile.SurName; - } - // try an scene object - SceneObjectPart SOP = m_CmdManager.m_ScriptEngine.World.GetSceneObjectPart(ent.UUID); - if (SOP != null) - { - objectname = SOP.Name; - } - - if ((ts.name != entname) && (ts.name != avatarname) && (ts.name != objectname)) + if (ts.name != ent.Name) { keep = false; } -- cgit v1.1