Changes to Welcome Message sent to clients.

.gitignore                                        |  1 +
 OpenSim/Services/LLLoginService/LLLoginService.cs | 32 +++++++++++++++--------
 1 files changed, 22 insertions(+), 11 deletions(-)

Signed-off-by: Diva Canto <diva@metaverseink.com>
fsassets
Quill Littlefeather 2015-06-23 17:15:22 +00:00 committed by Diva Canto
parent b5ac0e1ab8
commit 4131fbea0c
1 changed files with 21 additions and 11 deletions

View File

@ -82,10 +82,10 @@ namespace OpenSim.Services.LLLoginService
protected string m_ClassifiedFee;
protected string m_DestinationGuide;
protected string m_AvatarPicker;
protected string m_NewMessage;
protected string m_AllowedClients;
protected string m_DeniedClients;
protected string m_MessageUrl;
protected string m_DSTZone;
IConfig m_LoginServerConfig;
@ -125,7 +125,7 @@ namespace OpenSim.Services.LLLoginService
m_AllowedClients = m_LoginServerConfig.GetString("AllowedClients", string.Empty);
m_DeniedClients = m_LoginServerConfig.GetString("DeniedClients", string.Empty);
m_MessageUrl = m_LoginServerConfig.GetString("MessageUrl", string.Empty);
m_DSTZone = m_LoginServerConfig.GetString("DSTZone", "America/Los_Angeles;Pacific Standard Time");
// Clean up some of these vars
@ -490,10 +490,20 @@ namespace OpenSim.Services.LLLoginService
//
// Finally, fill out the response and return it
//
if (m_MessageUrl != String.Empty)
{
WebClient client = new WebClient();
string WebMessage = client.DownloadString(m_MessageUrl);
m_NewMessage = WebMessage.Replace("\\n", "\n").Replace("<USERNAME>", firstName + " " + lastName);
}
else
{
m_NewMessage = m_WelcomeMessage.Replace("\\n", "\n").Replace("<USERNAME>", firstName + " " + lastName);
}
LLLoginResponse response
= new LLLoginResponse(
account, aCircuit, guinfo, destination, inventorySkel, friendsList, m_LibraryService,
where, startLocation, position, lookAt, gestures, m_WelcomeMessage, home, clientIP,
where, startLocation, position, lookAt, gestures, m_NewMessage, home, clientIP,
m_MapTileURL, m_SearchURL, m_Currency, m_DSTZone,
m_DestinationGuide, m_AvatarPicker, m_ClassifiedFee);