summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-05-22 17:49:56 -0700
committerTodd Stinson <stinson@lindenlab.com>2012-05-22 17:49:56 -0700
commit49b48ed0b98efa1c006ebab51d729b74326ebc9b (patch)
tree1d39da454359c09bcad674a1314b3603afabd29c /indra/newview/llviewermessage.cpp
parente4b99957be012038c079ededd4321320b766d08e (diff)
EXP1-1945: Adding in a flow to catch other cases of teleportation failures due to maturity levels and bad network access. Still need better copy for the error message.
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rwxr-xr-xindra/newview/llviewermessage.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index be3357041a..c68e86d7e9 100755
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -5533,6 +5533,12 @@ bool handle_special_notification(std::string notificationID, LLSD& llsdBlock)
returnValue = true;
}
}
+ else if (LLStringUtil::compareStrings(notificationID, "RegionEntryAccessBlocked") == 0)
+ {
+ gAgent.clearFailedTeleportRequest();
+ maturityLevelNotification = LLNotificationsUtil::add(notificationID+"_PreferencesOutOfSync", llsdBlock, llsdBlock, handle_prompt_for_maturity_level_change_callback);
+ returnValue = true;
+ }
}
else if (regionAccess == SIM_ACCESS_ADULT)
{
@@ -5557,6 +5563,12 @@ bool handle_special_notification(std::string notificationID, LLSD& llsdBlock)
returnValue = true;
}
}
+ else if (LLStringUtil::compareStrings(notificationID, "RegionEntryAccessBlocked") == 0)
+ {
+ gAgent.clearFailedTeleportRequest();
+ maturityLevelNotification = LLNotificationsUtil::add(notificationID+"_PreferencesOutOfSync", llsdBlock, llsdBlock, handle_prompt_for_maturity_level_change_callback);
+ returnValue = true;
+ }
}
if ((maturityLevelNotification == NULL) || maturityLevelNotification->isIgnored())