mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
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
1 changed files with 0 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue