prevent empty nicknames. Closes #616

This commit is contained in:
oy 2011-04-06 17:53:05 +02:00
parent caf6e98ccb
commit 3fc6e2d2eb

View file

@ -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];