mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Always check that player names are not equal
This commit is contained in:
parent
37256d6e2c
commit
a58ad6aef7
|
@ -332,10 +332,6 @@ int CServer::TrySetClientName(int ClientID, const char *pName)
|
|||
if(!aTrimmedName[0])
|
||||
return -1;
|
||||
|
||||
// check if new and old name are the same
|
||||
if(m_aClients[ClientID].m_aName[0] && str_comp(m_aClients[ClientID].m_aName, aTrimmedName) == 0)
|
||||
return 0;
|
||||
|
||||
char aBuf[256];
|
||||
str_format(aBuf, sizeof(aBuf), "'%s' -> '%s'", pName, aTrimmedName);
|
||||
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "server", aBuf);
|
||||
|
|
Loading…
Reference in a new issue