mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Don't allow invites if allowjoin is off
This commit is contained in:
parent
d163f67700
commit
27654ffb6a
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ void DRPC_UpdatePresence(void)
|
|||
discordPresence.partyMax = cv_maxplayers.value; // Max players (TODO: another variable should hold this, so that maxplayers doesn't have to be a netvar)
|
||||
|
||||
// Grab the host's IP for joining.
|
||||
if ((join = DRPC_GetServerIP()) != NULL)
|
||||
if (cv_allownewplayer.value && ((join = DRPC_GetServerIP()) != NULL))
|
||||
discordPresence.joinSecret = join;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue