aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llchatbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llchatbar.cpp')
-rw-r--r--linden/indra/newview/llchatbar.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp
index 31fa653..84ebf98 100644
--- a/linden/indra/newview/llchatbar.cpp
+++ b/linden/indra/newview/llchatbar.cpp
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2002&license=viewergpl$ 5 * $LicenseInfo:firstyear=2002&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2002-2008, Linden Research, Inc. 7 * Copyright (c) 2002-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -553,15 +553,17 @@ void LLChatBar::onInputEditorGainFocus( LLFocusableElement* caller, void* userda
553// static 553// static
554void LLChatBar::onClickSay( LLUICtrl* ctrl, void* userdata ) 554void LLChatBar::onClickSay( LLUICtrl* ctrl, void* userdata )
555{ 555{
556 LLChatBar* self = (LLChatBar*) userdata; 556 e_chat_type chat_type = CHAT_TYPE_NORMAL;
557 if (ctrl->getValue().asString() == "shout") 557 if (ctrl->getValue().asString() == "shout")
558 { 558 {
559 self->sendChat( CHAT_TYPE_SHOUT ); 559 chat_type = CHAT_TYPE_SHOUT;
560 } 560 }
561 else 561 else if (ctrl->getValue().asString() == "whisper")
562 { 562 {
563 self->sendChat( CHAT_TYPE_NORMAL ); 563 chat_type = CHAT_TYPE_WHISPER;
564 } 564 }
565 LLChatBar* self = (LLChatBar*) userdata;
566 self->sendChat(chat_type);
565} 567}
566 568
567void LLChatBar::sendChatFromViewer(const std::string &utf8text, EChatType type, BOOL animate) 569void LLChatBar::sendChatFromViewer(const std::string &utf8text, EChatType type, BOOL animate)