mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-28 22:48:05 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cmd->GetToken(1)[0] == '*') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_Userinfo.SetValueForKey(cmd->GetToken(1), cmd->GetToken(2));
|
m_Userinfo.SetValueForKey(cmd->GetToken(1), cmd->GetToken(2));
|
||||||
UpdateUserInfo();
|
UpdateUserInfo();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user