should be able to spoof versions as well now, too

This commit is contained in:
Hazim Gazov
2010-04-28 15:44:27 -03:00
parent 32734e0de3
commit 5c25824144
8 changed files with 100 additions and 51 deletions

View File

@@ -260,7 +260,7 @@ std::string LLViewerMedia::getCurrentUserAgent()
// http://www.mozilla.org/build/revised-user-agent-strings.html
std::ostringstream codec;
codec << "SecondLife/";
codec << LL_VERSION_MAJOR << "." << LL_VERSION_MINOR << "." << LL_VERSION_PATCH << "." << LL_VERSION_BUILD;
codec << gSavedSettings.getInteger("SpecifiedVersionMaj") << "." << gSavedSettings.getInteger("SpecifiedVersionMin") << "." << gSavedSettings.getInteger("SpecifiedVersionPatch") << "." << gSavedSettings.getInteger("SpecifiedVersionBuild");
codec << " (" << channel << "; " << skin_name << " skin)";
llinfos << codec.str() << llendl;