diff --git a/ChaosBot/Services/RestrictedConfig.cs b/ChaosBot/Services/RestrictedConfig.cs index 21aa5e6..f535a7a 100644 --- a/ChaosBot/Services/RestrictedConfig.cs +++ b/ChaosBot/Services/RestrictedConfig.cs @@ -5,7 +5,7 @@ namespace ChaosBot.Services { public class RestrictedConfig { - public static Boolean IsAllowed(string key) + public static bool IsAllowed(string key) { // TODO: List populated from DB List restrictedCfg = new List @@ -32,10 +32,7 @@ namespace ChaosBot.Services "Database:Name", }; - if (restrictedCfg.Contains(key)) - return false; - - return true; + return !restrictedCfg.Contains(key); } } }