Fix show_ips on non-SQL servers

Mistake was introduced in 7c31a15c93

We didn't notice since official servers are SQL, except Block servers,
and we just started moderating them a bit.
This commit is contained in:
def 2020-09-27 01:15:26 +02:00
parent 6bb8cda483
commit b0b47e1286

View file

@ -3107,8 +3107,6 @@ void CServer::ConLogout(IConsole::IResult *pResult, void *pUser)
void CServer::ConShowIps(IConsole::IResult *pResult, void *pUser) void CServer::ConShowIps(IConsole::IResult *pResult, void *pUser)
{ {
if(!g_Config.m_SvUseSQL)
return;
CServer *pServer = (CServer *)pUser; CServer *pServer = (CServer *)pUser;
if(pServer->m_RconClientID >= 0 && pServer->m_RconClientID < MAX_CLIENTS && if(pServer->m_RconClientID >= 0 && pServer->m_RconClientID < MAX_CLIENTS &&