Add Aurora to the grid info platform list. Attempt to stop sending "resident" as the last name, except with Second Life.

This commit is contained in:
RevolutionSmythe
2011-08-14 17:24:09 -05:00
committed by Siana Gearz
parent 3fa0ef5129
commit d84140ead9
4 changed files with 13 additions and 4 deletions

View File

@@ -196,7 +196,11 @@ void HippoGridInfo::setPlatform(const std::string& platform)
for (unsigned i=0; i<platform.size(); i++)
tmp[i] = tolower(tmp[i]);
if (tmp == "opensim")
if (tmp == "aurora")
{
setPlatform(PLATFORM_AURORA);
}
else if (tmp == "opensim")
{
setPlatform(PLATFORM_OPENSIM);
}
@@ -555,7 +559,7 @@ const char* HippoGridInfo::getPlatformString(Platform platform)
{
static const char* platformStrings[PLATFORM_LAST] =
{
"Other", "OpenSim", "SecondLife"
"Other", "Aurora", "OpenSim", "SecondLife"
};
if ((platform < PLATFORM_OTHER) || (platform >= PLATFORM_LAST))

View File

@@ -23,6 +23,7 @@ class HippoGridInfo
public:
enum Platform {
PLATFORM_OTHER = 0,
PLATFORM_AURORA,
PLATFORM_OPENSIM,
PLATFORM_SECONDLIFE,
PLATFORM_LAST

View File

@@ -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);

View File

@@ -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