summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicecallhandler.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-03-31 16:51:41 -0400
committerOz Linden <oz@lindenlab.com>2011-03-31 16:51:41 -0400
commitc5ae838ce3cd8521b7b4817f153560e03a8dcc32 (patch)
tree7a489631ed3811ae52fab7bbf6b5a1075aa20e65 /indra/newview/llvoicecallhandler.cpp
parentba0c369aa20cdbfd7940a2435dd3c6630f0d54ae (diff)
parent4047349ade461fa6bac43da2a14c6e7689918aa1 (diff)
pull improved avatar physics ui and other improvements from Seraph
Diffstat (limited to 'indra/newview/llvoicecallhandler.cpp')
-rw-r--r--indra/newview/llvoicecallhandler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llvoicecallhandler.cpp b/indra/newview/llvoicecallhandler.cpp
index 274bd75208..2050dab689 100644
--- a/indra/newview/llvoicecallhandler.cpp
+++ b/indra/newview/llvoicecallhandler.cpp
@@ -27,6 +27,8 @@
#include "llviewerprecompiledheaders.h"
#include "llcommandhandler.h"
#include "llavataractions.h"
+#include "llnotificationsutil.h"
+#include "llui.h"
class LLVoiceCallAvatarHandler : public LLCommandHandler
{
@@ -38,6 +40,12 @@ public:
bool handle(const LLSD& params, const LLSD& query_map, LLMediaCtrl* web)
{
+ if (!LLUI::sSettingGroups["config"]->getBOOL("EnableVoiceCall"))
+ {
+ LLNotificationsUtil::add("NoVoiceCall", LLSD(), LLSD(), std::string("SwitchToStandardSkinAndQuit"));
+ return true;
+ }
+
//Make sure we have some parameters
if (params.size() == 0)
{