diff --git a/src/discord.c b/src/discord.c index 718f20c7..782e475b 100644 --- a/src/discord.c +++ b/src/discord.c @@ -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