NetPlayDiag: Get rid of unnecessary text limit check
The text control is limited to 2000 characters on creation.
This commit is contained in:
parent
3fed975bac
commit
ec82f02580
|
@ -425,9 +425,6 @@ void NetPlayDiag::OnChat(wxCommandEvent&)
|
||||||
|
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
{
|
{
|
||||||
if (text.length() > 2000)
|
|
||||||
text.erase(2000);
|
|
||||||
|
|
||||||
netplay_client->SendChatMessage(WxStrToStr(text));
|
netplay_client->SendChatMessage(WxStrToStr(text));
|
||||||
m_chat_text->AppendText(text.Prepend(" >> ").Append('\n'));
|
m_chat_text->AppendText(text.Prepend(" >> ").Append('\n'));
|
||||||
m_chat_msg_text->Clear();
|
m_chat_msg_text->Clear();
|
||||||
|
|
Loading…
Reference in New Issue