From f44094490549a46781a7d85a137ddf748021d00f Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 8 Jul 2011 00:00:38 +0200 Subject: fixed problem with rcon authentication --- src/engine/server/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/engine/server/server.cpp') diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index a707b690..24d3b317 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -840,7 +840,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket) { SendRconLine(ClientID, "No rcon password set on server. Set sv_rcon_password and/or sv_rcon_mod_password to enable the remote console."); } - else if(str_comp(pPw, g_Config.m_SvRconPassword) == 0) + else if(g_Config.m_SvRconPassword[0] && str_comp(pPw, g_Config.m_SvRconPassword) == 0) { CMsgPacker Msg(NETMSG_RCON_AUTH_STATUS); Msg.AddInt(1); @@ -852,7 +852,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket) str_format(aBuf, sizeof(aBuf), "ClientID=%d authed (admin)", ClientID); Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aBuf); } - else if(str_comp(pPw, g_Config.m_SvRconModPassword) == 0) + else if(g_Config.m_SvRconModPassword[0] && str_comp(pPw, g_Config.m_SvRconModPassword) == 0) { CMsgPacker Msg(NETMSG_RCON_AUTH_STATUS); Msg.AddInt(1); -- cgit 1.4.1