mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
NetPlay: Limit nickname length
Ridiculously long nicknames cause UI silliness, so 30 characters seems like a reasonable limit, as it's the same as the forum.
This commit is contained in:
@ -252,6 +252,9 @@ bool NetPlayClient::Connect()
|
||||
case CON_ERR_GAME_RUNNING:
|
||||
m_dialog->OnConnectionError(_trans("The game is currently running."));
|
||||
break;
|
||||
case CON_ERR_NAME_TOO_LONG:
|
||||
m_dialog->OnConnectionError(_trans("Nickname is too long."));
|
||||
break;
|
||||
default:
|
||||
m_dialog->OnConnectionError(_trans("The server sent an unknown error message."));
|
||||
break;
|
||||
|
Reference in New Issue
Block a user