Skip to content
Snippets Groups Projects
Commit 575ebaa4 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Allow overriding SYSTEM_FROM for other grids

parent 7df84e4c
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ const U8 IM_OFFLINE = 1;
const char EMPTY_BINARY_BUCKET[] = "";
const S32 EMPTY_BINARY_BUCKET_SIZE = 1;
const U32 NO_TIMESTAMP = 0;
const std::string SYSTEM_FROM("Second Life");
std::string SYSTEM_FROM("Second Life");
const std::string INTERACTIVE_SYSTEM_FROM("F387446C-37C4-45f2-A438-D99CBDBB563B");
const S32 IM_TTL = 1;
......
......@@ -171,7 +171,7 @@ extern const char EMPTY_BINARY_BUCKET[];
extern const S32 EMPTY_BINARY_BUCKET_SIZE;
extern const U32 NO_TIMESTAMP;
extern const std::string SYSTEM_FROM;
extern std::string SYSTEM_FROM;
extern const std::string INTERACTIVE_SYSTEM_FROM;
// Number of retry attempts on sending the im.
......
......@@ -696,6 +696,14 @@ void LLGridManager::setGridChoice(const std::string& grid, const bool only_selec
gSavedSettings.setString("CurrentGrid", grid_name);
LLTrans::setDefaultArg("CURRENT_GRID", getGridLabel());
LLTrans::setDefaultArg("GRID_ADMIN", getGridAdministrator());
if (isInSecondlife())
{
SYSTEM_FROM = "Second Life";
}
else
{
SYSTEM_FROM = "Grid";
}
updateIsInProductionGrid();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment