diff options
Diffstat (limited to 'linden/indra/newview/llchatbar.cpp')
-rw-r--r-- | linden/indra/newview/llchatbar.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp index 31fa653..2d9d356 100644 --- a/linden/indra/newview/llchatbar.cpp +++ b/linden/indra/newview/llchatbar.cpp | |||
@@ -553,15 +553,17 @@ void LLChatBar::onInputEditorGainFocus( LLFocusableElement* caller, void* userda | |||
553 | // static | 553 | // static |
554 | void LLChatBar::onClickSay( LLUICtrl* ctrl, void* userdata ) | 554 | void 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 | ||
567 | void LLChatBar::sendChatFromViewer(const std::string &utf8text, EChatType type, BOOL animate) | 569 | void LLChatBar::sendChatFromViewer(const std::string &utf8text, EChatType type, BOOL animate) |