mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Forgot one block
This commit is contained in:
parent
d475eddb88
commit
cf9f3e3d38
|
@ -2422,11 +2422,15 @@ void CServer::ConchainRconPasswordChange(IConsole::IResult *pResult, void *pUser
|
|||
|
||||
int KeySlot = pManager->DefaultKey(AUTHED_ADMIN);
|
||||
if(KeySlot == -1)
|
||||
{
|
||||
pManager->AddAdminKey(pResult->GetString(0));//Shouldn't happen
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
pManager->UpdateKey(KeySlot, pResult->GetString(0), AUTHED_ADMIN);
|
||||
pServer->LogoutKey(KeySlot, "key update");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CServer::ConchainRconModPasswordChange(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
|
||||
|
|
Loading…
Reference in a new issue