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.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp
index 44d1ad1..1146c44 100644
--- a/linden/indra/newview/llchatbar.cpp
+++ b/linden/indra/newview/llchatbar.cpp
@@ -154,7 +154,7 @@ BOOL LLChatBar::postBuild()
154 mInputEditor->setPassDelete(TRUE); 154 mInputEditor->setPassDelete(TRUE);
155 mInputEditor->setReplaceNewlinesWithSpaces(FALSE); 155 mInputEditor->setReplaceNewlinesWithSpaces(FALSE);
156 156
157 mInputEditor->setMaxTextLength(1023); 157 mInputEditor->setMaxTextLength(DB_CHAT_MSG_STR_LEN);
158 mInputEditor->setEnableLineHistory(TRUE); 158 mInputEditor->setEnableLineHistory(TRUE);
159 } 159 }
160 160
@@ -624,8 +624,12 @@ void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL
624 624
625 LLWString out_text = stripChannelNumber(wtext, &channel); 625 LLWString out_text = stripChannelNumber(wtext, &channel);
626 std::string utf8_out_text = wstring_to_utf8str(out_text); 626 std::string utf8_out_text = wstring_to_utf8str(out_text);
627 std::string utf8_text = wstring_to_utf8str(wtext); 627 if (!utf8_out_text.empty())
628 {
629 utf8_out_text = utf8str_truncate(utf8_out_text, MAX_MSG_STR_LEN);
630 }
628 631
632 std::string utf8_text = wstring_to_utf8str(wtext);
629 utf8_text = utf8str_trim(utf8_text); 633 utf8_text = utf8str_trim(utf8_text);
630 if (!utf8_text.empty()) 634 if (!utf8_text.empty())
631 { 635 {