diff options
author | Diva Canto | 2015-06-25 15:01:43 -0700 |
---|---|---|
committer | Diva Canto | 2015-06-25 15:01:43 -0700 |
commit | c299414d508d87259cc4bf17fd19a564ba99c6b5 (patch) | |
tree | 2343fb08aa0ba09a94fa83942374992049f6da03 /OpenSim | |
parent | Changes to Welcome Message sent to clients. (diff) | |
download | opensim-SC-c299414d508d87259cc4bf17fd19a564ba99c6b5.zip opensim-SC-c299414d508d87259cc4bf17fd19a564ba99c6b5.tar.gz opensim-SC-c299414d508d87259cc4bf17fd19a564ba99c6b5.tar.bz2 opensim-SC-c299414d508d87259cc4bf17fd19a564ba99c6b5.tar.xz |
Fixed bad-ish code in login patch
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 143ee0c..96f2621 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -82,7 +82,6 @@ namespace OpenSim.Services.LLLoginService | |||
82 | protected string m_ClassifiedFee; | 82 | protected string m_ClassifiedFee; |
83 | protected string m_DestinationGuide; | 83 | protected string m_DestinationGuide; |
84 | protected string m_AvatarPicker; | 84 | protected string m_AvatarPicker; |
85 | protected string m_NewMessage; | ||
86 | protected string m_AllowedClients; | 85 | protected string m_AllowedClients; |
87 | protected string m_DeniedClients; | 86 | protected string m_DeniedClients; |
88 | protected string m_MessageUrl; | 87 | protected string m_MessageUrl; |
@@ -256,6 +255,7 @@ namespace OpenSim.Services.LLLoginService | |||
256 | { | 255 | { |
257 | bool success = false; | 256 | bool success = false; |
258 | UUID session = UUID.Random(); | 257 | UUID session = UUID.Random(); |
258 | string processedMessage; | ||
259 | 259 | ||
260 | m_log.InfoFormat("[LLOGIN SERVICE]: Login request for {0} {1} at {2} using viewer {3}, channel {4}, IP {5}, Mac {6}, Id0 {7}", | 260 | m_log.InfoFormat("[LLOGIN SERVICE]: Login request for {0} {1} at {2} using viewer {3}, channel {4}, IP {5}, Mac {6}, Id0 {7}", |
261 | firstName, lastName, startLocation, clientVersion, channel, clientIP.Address.ToString(), mac, id0); | 261 | firstName, lastName, startLocation, clientVersion, channel, clientIP.Address.ToString(), mac, id0); |
@@ -493,17 +493,18 @@ namespace OpenSim.Services.LLLoginService | |||
493 | if (m_MessageUrl != String.Empty) | 493 | if (m_MessageUrl != String.Empty) |
494 | { | 494 | { |
495 | WebClient client = new WebClient(); | 495 | WebClient client = new WebClient(); |
496 | string WebMessage = client.DownloadString(m_MessageUrl); | 496 | processedMessage = client.DownloadString(m_MessageUrl); |
497 | m_NewMessage = WebMessage.Replace("\\n", "\n").Replace("<USERNAME>", firstName + " " + lastName); | ||
498 | } | 497 | } |
499 | else | 498 | else |
500 | { | 499 | { |
501 | m_NewMessage = m_WelcomeMessage.Replace("\\n", "\n").Replace("<USERNAME>", firstName + " " + lastName); | 500 | processedMessage = m_WelcomeMessage; |
502 | } | 501 | } |
502 | processedMessage = processedMessage.Replace("\\n", "\n").Replace("<USERNAME>", firstName + " " + lastName); | ||
503 | |||
503 | LLLoginResponse response | 504 | LLLoginResponse response |
504 | = new LLLoginResponse( | 505 | = new LLLoginResponse( |
505 | account, aCircuit, guinfo, destination, inventorySkel, friendsList, m_LibraryService, | 506 | account, aCircuit, guinfo, destination, inventorySkel, friendsList, m_LibraryService, |
506 | where, startLocation, position, lookAt, gestures, m_NewMessage, home, clientIP, | 507 | where, startLocation, position, lookAt, gestures, processedMessage, home, clientIP, |
507 | m_MapTileURL, m_SearchURL, m_Currency, m_DSTZone, | 508 | m_MapTileURL, m_SearchURL, m_Currency, m_DSTZone, |
508 | m_DestinationGuide, m_AvatarPicker, m_ClassifiedFee); | 509 | m_DestinationGuide, m_AvatarPicker, m_ClassifiedFee); |
509 | 510 | ||