mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Append "demo" to the keywords if fs_restrict is enabled
This commit is contained in:
parent
79643d963e
commit
932367d061
1 changed files with 8 additions and 0 deletions
|
@ -510,6 +510,14 @@ void SVC_Status( netadr_t from ) {
|
|||
// to prevent timed spoofed reply packets that add ghost servers
|
||||
Info_SetValueForKey( infostring, "challenge", Cmd_Argv(1) );
|
||||
|
||||
if (Cvar_VariableIntegerValue("fs_restrict")) {
|
||||
char keywords[MAX_INFO_STRING];
|
||||
|
||||
// Append "demo" at the beginning of the keywords
|
||||
Com_sprintf(keywords, sizeof(keywords), "demo %s", Info_ValueForKey(infostring, "sv_keywords"));
|
||||
Info_SetValueForKey(infostring, "sv_keywords", keywords);
|
||||
}
|
||||
|
||||
status[0] = 0;
|
||||
statusLength = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue