mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
work around "player name exploit" problems caused by qizmo (happens when
someone connects to the server)
This commit is contained in:
parent
e3008841be
commit
6d329e0118
1 changed files with 1 additions and 1 deletions
|
@ -992,7 +992,7 @@ CL_ProcessUserInfo (int slot, player_info_t *player)
|
||||||
}
|
}
|
||||||
|
|
||||||
s = Info_ValueForKey (player->userinfo, "name");
|
s = Info_ValueForKey (player->userinfo, "name");
|
||||||
if (!*s)
|
if (!*s && player->userid)
|
||||||
Info_SetValueForKey (player->userinfo, "name", va ("user-%i [exploit]", player->userid), 1);
|
Info_SetValueForKey (player->userinfo, "name", va ("user-%i [exploit]", player->userid), 1);
|
||||||
strncpy (player->name, Info_ValueForKey (player->userinfo, "name"),
|
strncpy (player->name, Info_ValueForKey (player->userinfo, "name"),
|
||||||
sizeof (player->name) - 1);
|
sizeof (player->name) - 1);
|
||||||
|
|
Loading…
Reference in a new issue