mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Adds configurable OGP Name prefix and suffix. See OpenSim.ini.example at the bottom for details. Defaults to an empty string for prefix and '_EXTERNAL' for suffix
This commit is contained in:
@@ -90,6 +90,8 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
|
||||
|
||||
private Dictionary<string, AgentCircuitData> CapsLoginID = new Dictionary<string, AgentCircuitData>();
|
||||
private Dictionary<LLUUID, OGPState> m_OGPState = new Dictionary<LLUUID, OGPState>();
|
||||
private string LastNameSuffix = "_EXTERNAL";
|
||||
private string FirstNamePrefix = "";
|
||||
|
||||
#region IRegionModule Members
|
||||
|
||||
@@ -107,6 +109,8 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
|
||||
if (cfg != null)
|
||||
{
|
||||
enabled = cfg.GetBoolean("ogp_enabled", false);
|
||||
LastNameSuffix = cfg.GetString("ogp_lastname_suffix", "_EXTERNAL");
|
||||
FirstNamePrefix = cfg.GetString("ogp_firstname_prefix", "");
|
||||
if (enabled)
|
||||
{
|
||||
m_log.Warn("[OGP]: Open Grid Protocol is on, Listening for Clients on /agent/");
|
||||
@@ -235,6 +239,9 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
|
||||
string FirstName = requestMap["first_name"].AsString();
|
||||
string LastName = requestMap["last_name"].AsString();
|
||||
|
||||
FirstName = FirstNamePrefix + FirstName;
|
||||
LastName = LastName + LastNameSuffix;
|
||||
|
||||
OGPState userState = GetOGPState(LocalAgentID);
|
||||
|
||||
userState.first_name = requestMap["first_name"].AsString();
|
||||
|
||||
Reference in New Issue
Block a user