mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
functioncall not needed, dunno why its there anyway
This commit is contained in:
parent
3e530ac02d
commit
e0c02eb691
|
@ -1761,7 +1761,7 @@ void CServer::SetRconLevel(int ClientId, int Level)
|
|||
CMsgPacker Msg(NETMSG_RCON_AUTH_STATUS);
|
||||
Msg.AddInt(0);
|
||||
SendMsgEx(&Msg, MSGFLAG_VITAL, ClientId, true);
|
||||
m_aClients[ClientId].m_Authed = Level;
|
||||
m_aClients[ClientId].m_Authed = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1814,7 +1814,6 @@ void CServer::CheckPass(int ClientId, const char *pPw)
|
|||
{
|
||||
char buf[128]="Authentication successful. Remote console access granted for ClientId=%d with level=%d";
|
||||
SetRconLevel(ClientId,level);
|
||||
SetClientAuthed(ClientId, level);
|
||||
str_format(buf,sizeof(buf),buf,ClientId,level);
|
||||
SendRconLine(ClientId, buf);
|
||||
dbg_msg("server", "'%s' ClientId=%d authed with Level=%d", ClientName(ClientId), ClientId, level);
|
||||
|
@ -1854,7 +1853,6 @@ void CServer::CheckPass(int ClientId, const char *pPw)
|
|||
{
|
||||
char buf[128]="Authentication successful. Remote console access granted for ClientId=%d with level=%d";
|
||||
SetRconLevel(ClientId,0);
|
||||
SetClientAuthed(ClientId, 0);
|
||||
str_format(buf,sizeof(buf),buf,ClientId,0);
|
||||
SendRconLine(ClientId, buf);
|
||||
dbg_msg("server", "'%s' ClientId=%d authed with Level=%d", ClientName(ClientId), ClientId, 0);
|
||||
|
|
Loading…
Reference in a new issue