Skip to content

Commit

Permalink
Disable pretty style if Steam key isnt configured
Browse files Browse the repository at this point in the history
  • Loading branch information
1zc committed Feb 15, 2024
1 parent 87686f0 commit 2e48da9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DiscordChat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ public void OnConfigParsed(DiscordChatConfig config)
throw new InvalidOperationException("[DISCORDCHAT ERROR] Failed to load configuration >> DiscordWebhook is a required field in the configuration file.");
}

if (config.DiscordChatSteamKey == null || config.DiscordChatSteamKey == "")
{
// Steam Key not configured, defaulting to simple style.
config.DiscordChatStyle = 0;
}

// Load config
Config = config;
}
Expand Down

0 comments on commit 2e48da9

Please sign in to comment.