Don't allow invites if allowjoin is off

This commit is contained in:
Sally Coolatta 2020-08-17 06:55:43 -04:00
parent d163f67700
commit 27654ffb6a
1 changed files with 1 additions and 1 deletions

View File

@ -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