From a58ad6aef78d94c297edf890107644401d1302d1 Mon Sep 17 00:00:00 2001 From: def Date: Fri, 14 Aug 2015 00:11:25 +0200 Subject: [PATCH] Always check that player names are not equal --- src/engine/server/server.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index 63f642dfc..03847ec69 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -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);