added logging for rcon command tries

This commit is contained in:
heinrich5991 2010-10-18 19:20:09 +02:00 committed by GreYFoXGTi
parent 4d6370d890
commit dcb80a4e58

View file

@ -314,6 +314,7 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr, const int Client
else 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); 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);
dbg_msg("server", "client tried rcon command ('%s') without permisson. ClientId=%d ", pCommand->m_pName, ClientId);
} }
PrintResponse(OUTPUT_LEVEL_STANDARD, "Console", aBuf); PrintResponse(OUTPUT_LEVEL_STANDARD, "Console", aBuf);