aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
index dbe045a..8fad62f 100644
--- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
+++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
@@ -90,6 +90,8 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
90 90
91 private Dictionary<string, AgentCircuitData> CapsLoginID = new Dictionary<string, AgentCircuitData>(); 91 private Dictionary<string, AgentCircuitData> CapsLoginID = new Dictionary<string, AgentCircuitData>();
92 private Dictionary<LLUUID, OGPState> m_OGPState = new Dictionary<LLUUID, OGPState>(); 92 private Dictionary<LLUUID, OGPState> m_OGPState = new Dictionary<LLUUID, OGPState>();
93 private string LastNameSuffix = "_EXTERNAL";
94 private string FirstNamePrefix = "";
93 95
94 #region IRegionModule Members 96 #region IRegionModule Members
95 97
@@ -107,6 +109,8 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
107 if (cfg != null) 109 if (cfg != null)
108 { 110 {
109 enabled = cfg.GetBoolean("ogp_enabled", false); 111 enabled = cfg.GetBoolean("ogp_enabled", false);
112 LastNameSuffix = cfg.GetString("ogp_lastname_suffix", "_EXTERNAL");
113 FirstNamePrefix = cfg.GetString("ogp_firstname_prefix", "");
110 if (enabled) 114 if (enabled)
111 { 115 {
112 m_log.Warn("[OGP]: Open Grid Protocol is on, Listening for Clients on /agent/"); 116 m_log.Warn("[OGP]: Open Grid Protocol is on, Listening for Clients on /agent/");
@@ -235,6 +239,9 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
235 string FirstName = requestMap["first_name"].AsString(); 239 string FirstName = requestMap["first_name"].AsString();
236 string LastName = requestMap["last_name"].AsString(); 240 string LastName = requestMap["last_name"].AsString();
237 241
242 FirstName = FirstNamePrefix + FirstName;
243 LastName = LastName + LastNameSuffix;
244
238 OGPState userState = GetOGPState(LocalAgentID); 245 OGPState userState = GetOGPState(LocalAgentID);
239 246
240 userState.first_name = requestMap["first_name"].AsString(); 247 userState.first_name = requestMap["first_name"].AsString();