From d84140ead9fa40cad6659e36f5f2962cf1446810 Mon Sep 17 00:00:00 2001 From: RevolutionSmythe Date: Sun, 14 Aug 2011 17:24:09 -0500 Subject: [PATCH] Add Aurora to the grid info platform list. Attempt to stop sending "resident" as the last name, except with Second Life. --- indra/newview/hippogridmanager.cpp | 8 ++++++-- indra/newview/hippogridmanager.h | 1 + indra/newview/llpanellogin.cpp | 7 ++++++- indra/newview/llstartup.cpp | 1 - 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/indra/newview/hippogridmanager.cpp b/indra/newview/hippogridmanager.cpp index 68891608a..4cbec7a06 100644 --- a/indra/newview/hippogridmanager.cpp +++ b/indra/newview/hippogridmanager.cpp @@ -196,7 +196,11 @@ void HippoGridInfo::setPlatform(const std::string& platform) for (unsigned i=0; i= PLATFORM_LAST)) diff --git a/indra/newview/hippogridmanager.h b/indra/newview/hippogridmanager.h index 1301ae1cc..071d16c7a 100644 --- a/indra/newview/hippogridmanager.h +++ b/indra/newview/hippogridmanager.h @@ -23,6 +23,7 @@ class HippoGridInfo public: enum Platform { PLATFORM_OTHER = 0, + PLATFORM_AURORA, PLATFORM_OPENSIM, PLATFORM_SECONDLIFE, PLATFORM_LAST diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index 1920750be..29a73f8cd 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -109,7 +109,12 @@ static bool nameSplit(const std::string& full, std::string& first, std::string& return false; first = fragments[0]; if (fragments.size() == 1) - last = "resident"; + { + if (gHippoGridManager->getConnectedGrid()->isSecondLife()) + last = "resident"; + else + last = ""; + } else last = fragments[1]; return (fragments.size() <= 2); diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index b61ad580e..a89b333ed 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -1797,7 +1797,6 @@ bool idle_startup() { gSavedSettings.setString("MapServerURL", map_server_url); LLWorldMap::gotMapServerURL(true); - llinfos << "Got Map server URL: " << map_server_url << llendl; } // Override grid info with anything sent in the login response