fixing the console (2)

This commit is contained in:
XXLTomate 2012-01-28 11:14:31 +01:00
parent 420447dc51
commit f9e4547b31
4 changed files with 5 additions and 5 deletions

View file

@ -84,7 +84,7 @@ public:
virtual bool LineIsValid(const char *pStr) = 0;
virtual void ExecuteLine(const char *Sptr, int ClientID = -1) = 0;
virtual void ExecuteLineFlag(const char *Sptr, int FlasgMask) = 0;
virtual void ExecuteLineFlag(const char *Sptr, int FlasgMask, int ClientID = -1) = 0;
virtual void ExecuteLineStroked(int Stroke, const char *pStr, int ClientID = -1) = 0;
virtual void ExecuteFile(const char *pFilename, int ClientID = -1) = 0;

View file

@ -1001,7 +1001,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
m_RconClientID = ClientID;
m_RconAuthLevel = m_aClients[ClientID].m_Authed;
Console()->SetAccessLevel(m_aClients[ClientID].m_Authed == AUTHED_ADMIN ? IConsole::ACCESS_LEVEL_ADMIN : m_aClients[ClientID].m_Authed == AUTHED_MOD ? IConsole::ACCESS_LEVEL_MOD : IConsole::ACCESS_LEVEL_USER);
Console()->ExecuteLineFlag(pCmd, CFGFLAG_SERVER);
Console()->ExecuteLineFlag(pCmd, CFGFLAG_SERVER, ClientID);
Console()->SetAccessLevel(IConsole::ACCESS_LEVEL_ADMIN);
m_RconClientID = IServer::RCON_CID_SERV;
m_RconAuthLevel = AUTHED_ADMIN;

View file

@ -427,11 +427,11 @@ void CConsole::ExecuteLine(const char *pStr, int ClientID)
CConsole::ExecuteLineStroked(0, pStr, ClientID); // then release it
}
void CConsole::ExecuteLineFlag(const char *pStr, int FlagMask)
void CConsole::ExecuteLineFlag(const char *pStr, int FlagMask, int ClientID)
{
int Temp = m_FlagMask;
m_FlagMask = FlagMask;
ExecuteLine(pStr);
ExecuteLine(pStr, ClientID);
m_FlagMask = Temp;
}

View file

@ -186,7 +186,7 @@ public:
virtual bool LineIsValid(const char *pStr);
virtual void ExecuteLine(const char *pStr, int ClientID = -1);
virtual void ExecuteLineFlag(const char *pStr, int FlagMask);
virtual void ExecuteLineFlag(const char *pStr, int FlagMask, int ClientID = -1);
virtual void ExecuteFile(const char *pFilename, int ClientID = -1);
virtual int RegisterPrintCallback(int OutputLevel, FPrintCallback pfnPrintCallback, void *pUserData);