From 17bf8826dc09298c6fc6898ccb257af6967dead6 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 13 Aug 2019 03:48:07 +1000 Subject: Godliness can be in the first name as well. As it is in IG. --- .../Region/OptionalModules/ViewerSupport/GodNamesModule.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region/OptionalModules/ViewerSupport/GodNamesModule.cs') diff --git a/OpenSim/Region/OptionalModules/ViewerSupport/GodNamesModule.cs b/OpenSim/Region/OptionalModules/ViewerSupport/GodNamesModule.cs index 8ed0bb3..20650bf 100644 --- a/OpenSim/Region/OptionalModules/ViewerSupport/GodNamesModule.cs +++ b/OpenSim/Region/OptionalModules/ViewerSupport/GodNamesModule.cs @@ -47,6 +47,7 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport // Configuration private static bool m_enabled = false; + private static List m_firstNames = new List(); private static List m_lastNames = new List(); private static List m_fullNames = new List(); @@ -72,6 +73,13 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport m_fullNames.Add(strlan); } + conf_str = moduleConfig.GetString("FirstNames", String.Empty); + foreach (string strl in conf_str.Split(',')) { + string strlan = strl.Trim(" \t".ToCharArray()); + m_log.DebugFormat("[GODNAMES]: Adding {0} as a God first name", strlan); + m_firstNames.Add(strlan); + } + conf_str = moduleConfig.GetString("Surnames", String.Empty); foreach (string strl in conf_str.Split(',')) { string strlan = strl.Trim(" \t".ToCharArray()); @@ -134,6 +142,12 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport } ((OSDMap)namesmap)["full_names"] = fnames; + OSDArray fsnames = new OSDArray(); + foreach (string name in m_firstNames) { + fsnames.Add(name); + } + ((OSDMap)namesmap)["first_names"] = fsnames; + OSDArray lnames = new OSDArray(); foreach (string name in m_lastNames) { lnames.Add(name); -- cgit v1.1