mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-16 00:28:20 +03:00
HLTV: prevent clients from setting userinfo * keys with setinfo command (#792)
This commit is contained in:
parent
954ec3237c
commit
83c0b6ea2b
@ -320,6 +320,10 @@ void BaseClient::CMD_SetInfo(TokenLine *cmd)
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmd->GetToken(1)[0] == '*') {
|
||||
return;
|
||||
}
|
||||
|
||||
m_Userinfo.SetValueForKey(cmd->GetToken(1), cmd->GetToken(2));
|
||||
UpdateUserInfo();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user