mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixing the console (2)
This commit is contained in:
parent
420447dc51
commit
f9e4547b31
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue