LLFloaterAvatarList RLVa: Don't announce people are in range when the user is blind.

This commit is contained in:
Lirusaito
2012-12-06 22:17:44 -05:00
parent 0100cd2f36
commit 1ffb5aa6fe

View File

@@ -83,6 +83,7 @@ typedef enum e_radar_alert_type
void chat_avatar_status(std::string name, LLUUID key, ERadarAlertType type, bool entering)
{
if(gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) return; //RLVa:LF Don't announce people are around when blind, that cheats the system.
static LLCachedControl<bool> radar_chat_alerts(gSavedSettings, "RadarChatAlerts");
if (!radar_chat_alerts) return;
static LLCachedControl<bool> radar_alert_sim(gSavedSettings, "RadarAlertSim");