about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-07-08 00:00:38 +0200
committeroy <Tom_Adams@web.de>2011-07-08 00:00:38 +0200
commitf44094490549a46781a7d85a137ddf748021d00f (patch)
tree9d95f865c3c24371809372fd0e15b5b23d890a82 /src/engine
parent2e12d97712f80baf5ac10a72cfc900e443021330 (diff)
downloadzcatch-f44094490549a46781a7d85a137ddf748021d00f.tar.gz
zcatch-f44094490549a46781a7d85a137ddf748021d00f.zip
fixed problem with rcon authentication
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/server/server.cpp4
1 files changed, 2 insertions, 2 deletions
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);