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:
1 parent
92812d0b0b
commit
037aa2192f
6 files changed
+24
-4
No files matched your search
@@ -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