mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +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);
|
StrRtrim(aTrimmedName);
|
||||||
|
|
||||||
// check if new and old name are the same
|
// 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;
|
return 0;
|
||||||
|
|
||||||
char aBuf[256];
|
char aBuf[256];
|
||||||
|
|
Loading…
Reference in a new issue