Don't allow invites if allowjoin is off

This commit is contained in:
Sally Coolatta committed 2020-08-17 06:55:43 -04:00
1 parent d163f67700
commit 27654ffb6a
1 file changed
+1 -1
+1 -1
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