[FIXED] Properly handle RLVa anonym slurls even when it's turned off
--HG-- branch : RLVamaster
parent
e532b5a467
commit
d4c4fdf0d9
|
|
@ -344,6 +344,12 @@ void RlvStrings::saveToFile(const std::string& strFilePath)
|
|||
// Checked: 2009-11-11 (RLVa-1.1.0a) | Modified: RLVa-1.1.0a
|
||||
const std::string& RlvStrings::getAnonym(const std::string& strName)
|
||||
{
|
||||
static const std::string strUnknown = LLTrans::getString("Unknown");
|
||||
if ( (!RlvActions::isRlvEnabled()) || (m_Anonyms.empty()) )
|
||||
{
|
||||
return strUnknown;
|
||||
}
|
||||
|
||||
const char* pszName = strName.c_str(); U32 nHash = 0;
|
||||
|
||||
// Test with 11,264 SL names showed a 3.33% - 3.82% occurance for each so we *should* get a very even spread
|
||||
|
|
|
|||
Loading…
Reference in New Issue