diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index 2237291b1..204942d06 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -894,7 +894,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket) char aBuf[256]; str_format(aBuf, sizeof(aBuf), "ClientId=%d Level=%d Rcon='%s'", ClientId, m_aClients[ClientId].m_Authed, pCmd); Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "server", aBuf); - Console()->ExecuteLine(pCmd); + Console()->ExecuteLine(pCmd, m_aClients[ClientId].m_Authed, ClientId); //Addr = m_NetServer.ClientAddr(ClientId); if(m_aClients[ClientId].m_Authed > 0) { @@ -977,7 +977,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket) } } } - else if(str_comp(pPw, g_Config.m_SvRconPassword) == 0) + /*else if(str_comp(pPw, g_Config.m_SvRconPassword) == 0) { CMsgPacker Msg(NETMSG_RCON_AUTH_STATUS); Msg.AddInt(1); @@ -988,7 +988,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket) char aBuf[256]; str_format(aBuf, sizeof(aBuf), "ClientId=%d authed", ClientId); Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aBuf); - } + }*/ else { SendRconLine(ClientId, "Wrong password."); diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index bfb2deb05..07152bab2 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -234,7 +234,7 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr, const int Client } else { str_format(aBuf, sizeof(aBuf), "You have low level to use command: %s. Your level: %d. Need level: %d", pCommand->m_pName, ClientLevel, pCommand->m_Level); } - Print(aBuf); + Print(OUTPUT_LEVEL_STANDARD, "Console",aBuf); } } } diff --git a/src/engine/shared/network_server.cpp b/src/engine/shared/network_server.cpp index 1fe2dc37b..8c76c1ff3 100644 --- a/src/engine/shared/network_server.cpp +++ b/src/engine/shared/network_server.cpp @@ -89,8 +89,8 @@ int CNetServer::Drop(int ClientID, const char *pReason) m_pfnDelClient(ClientID, pReason, m_UserPtr); - if(m_pfnDelClient) - m_pfnDelClient(ClientID, m_UserPtr); +/* if(m_pfnDelClient) + m_pfnDelClient(ClientID, m_UserPtr);*/ m_aSlots[ClientID].m_Connection.Disconnect(pReason); BanAddNoDrop(Addr, g_Config.m_SvReconnectTime); return 0; @@ -524,4 +524,4 @@ void CNetServer::SetMaxClientsPerIP(int Max) Max = NET_MAX_CLIENTS; m_MaxClientsPerIP = Max; -} +} \ No newline at end of file