From 27654ffb6a2ead03cc80a7459a196cb7d8a34237 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 17 Aug 2020 06:55:43 -0400 Subject: [PATCH] Don't allow invites if allowjoin is off --- src/discord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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