fixed two lines I forgot

This commit is contained in:
H-M-H 2015-10-27 02:00:15 +01:00
parent cd6c297cb0
commit 4ffbd60347

View file

@ -1180,30 +1180,32 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
// AUTHED_ADMIN - AuthLevel gets the proper IConsole::ACCESS_LEVEL_<x> // AUTHED_ADMIN - AuthLevel gets the proper IConsole::ACCESS_LEVEL_<x>
m_aClients[ClientID].m_pRconCmdToSend = Console()->FirstCommandInfo(AUTHED_ADMIN - AuthLevel, CFGFLAG_SERVER); m_aClients[ClientID].m_pRconCmdToSend = Console()->FirstCommandInfo(AUTHED_ADMIN - AuthLevel, CFGFLAG_SERVER);
char aBuf[256];
switch (AuthLevel) switch (AuthLevel)
{ {
case AUTHED_ADMIN: case AUTHED_ADMIN:
{ {
SendRconLine(ClientID, "Admin authentication successful. Full remote console access granted."); SendRconLine(ClientID, "Admin authentication successful. Full remote console access granted.");
str_format(aBuf, sizeof(aBuf), "ClientID=%d authed (admin)", ClientID);
break; break;
} }
case AUTHED_MOD: case AUTHED_MOD:
{ {
SendRconLine(ClientID, "Moderator authentication successful. Limited remote console access granted."); SendRconLine(ClientID, "Moderator authentication successful. Limited remote console access granted.");
str_format(aBuf, sizeof(aBuf), "ClientID=%d authed (moderator)", ClientID);
break; break;
} }
case AUTHED_HELPER: case AUTHED_HELPER:
{ {
SendRconLine(ClientID, "Helper authentication successful. Limited remote console access granted."); SendRconLine(ClientID, "Helper authentication successful. Limited remote console access granted.");
str_format(aBuf, sizeof(aBuf), "ClientID=%d authed (helper)", ClientID);
break; break;
} }
} }
char aBuf[256];
str_format(aBuf, sizeof(aBuf), "ClientID=%d authed (admin)", ClientID);
Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aBuf); Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aBuf);
// DDRace // DDRace
GameServer()->OnSetAuthed(ClientID, AUTHED_ADMIN); GameServer()->OnSetAuthed(ClientID, AuthLevel);
} }
} }
else if(g_Config.m_SvRconMaxTries) else if(g_Config.m_SvRconMaxTries)