mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
prevent empty nicknames. Closes #616
This commit is contained in:
parent
caf6e98ccb
commit
3fc6e2d2eb
|
@ -195,7 +195,7 @@ int CServer::TrySetClientName(int ClientID, const char *pName)
|
|||
StrRtrim(aTrimmedName);
|
||||
|
||||
// check if new and old name are the same
|
||||
if(str_comp(m_aClients[ClientID].m_aName, aTrimmedName) == 0)
|
||||
if(m_aClients[ClientID].m_aName[0] && str_comp(m_aClients[ClientID].m_aName, aTrimmedName) == 0)
|
||||
return 0;
|
||||
|
||||
char aBuf[256];
|
||||
|
|
Loading…
Reference in a new issue