diff options
author | Melanie | 2009-10-14 17:39:38 +0100 |
---|---|---|
committer | Melanie | 2009-10-14 17:39:38 +0100 |
commit | 3795cface2c089c9148e727b086cb4cd554ff38e (patch) | |
tree | cbecce6ffb7b60722aa17d456059ddb9c20e819c /OpenSim/Region/ScriptEngine/Shared | |
parent | Set the estate owner to be the master avatar if it's not set. (diff) | |
download | opensim-SC_OLD-3795cface2c089c9148e727b086cb4cd554ff38e.zip opensim-SC_OLD-3795cface2c089c9148e727b086cb4cd554ff38e.tar.gz opensim-SC_OLD-3795cface2c089c9148e727b086cb4cd554ff38e.tar.bz2 opensim-SC_OLD-3795cface2c089c9148e727b086cb4cd554ff38e.tar.xz |
Enable LSL dialogs to display group names properly
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index b5f6721..e10e612 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -859,7 +859,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
859 | World.Entities.TryGetValue(objecUUID, out SensedObject); | 859 | World.Entities.TryGetValue(objecUUID, out SensedObject); |
860 | 860 | ||
861 | if (SensedObject == null) | 861 | if (SensedObject == null) |
862 | { | ||
863 | IGroupsModule groups = World.RequestModuleInterface<IGroupsModule>(); | ||
864 | if (groups != null) | ||
865 | { | ||
866 | GroupRecord gr = groups.GetGroupRecord(objecUUID); | ||
867 | if (gr != null) | ||
868 | return gr.GroupName; | ||
869 | } | ||
862 | return String.Empty; | 870 | return String.Empty; |
871 | } | ||
872 | |||
863 | return SensedObject.Name; | 873 | return SensedObject.Name; |
864 | } | 874 | } |
865 | 875 | ||