IRC Feature Request: Ability to show only legacy names for speakers (in Adv. Chat->Chat UI preferences)

This commit is contained in:
Inusaito Sayori
2013-08-15 00:06:09 -04:00
parent 0b9f14fff7
commit a5705bd459
5 changed files with 20 additions and 1 deletions

View File

@@ -88,7 +88,11 @@ void LLSpeaker::lookupName()
void LLSpeaker::onNameCache(const LLAvatarName& full_name)
{
LLAvatarNameCache::getPNSName(full_name, mDisplayName);
static const LLCachedControl<bool> legacy_name("LiruLegacySpeakerNames");
if (legacy_name)
mDisplayName = gCacheName->cleanFullName(full_name.getLegacyName());
else
LLAvatarNameCache::getPNSName(full_name, mDisplayName);
}
bool LLSpeaker::isInVoiceChannel()