mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
NetPlayDiag: Get rid of unnecessary text limit check
The text control is limited to 2000 characters on creation.
This commit is contained in:
@ -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();
|
||||||
|
Reference in New Issue
Block a user