Skip to content

Commit

Permalink
DISCORD: changed the default discord mask as requested in #305
Browse files Browse the repository at this point in the history
this is now only sending a message if a new human player connects to the game - if you want more,
set discord_webhook_content to 255
  • Loading branch information
mgerhardy committed Nov 2, 2024
1 parent 072da7b commit 00b7119
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/qcommon/q_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ typedef enum {
} errorParm_t;

typedef enum {
DISCORD_MSG_STARTING_MAP = 1,
DISCORD_MSG_PLAYER_CONNECT = 2,
DISCORD_MSG_PLAYER_CONNECT = 1,
DISCORD_MSG_STARTING_MAP = 2,
DISCORD_MSG_SCORE = 4
} discordMsg_t;

Expand Down
2 changes: 1 addition & 1 deletion code/server/sv_discord.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int DISCORD_Init(void) {
}
// e.g. https://discord.com/api/webhooks/xxx/yyy
discord_webhook_url = Cvar_Get("discord_webhook_url", "", CVAR_ARCHIVE);
discord_webhook_content = Cvar_Get("discord_webhook_content", "255", CVAR_ARCHIVE);
discord_webhook_content = Cvar_Get("discord_webhook_content", "1", CVAR_ARCHIVE);
Cvar_SetDescription(discord_webhook_content, "A bitmask of the content to send to the discord webhook");

commandQueueMutex = SDL_CreateMutex();
Expand Down

0 comments on commit 00b7119

Please sign in to comment.