diff --git a/TwitchChatVotingProxy/TwitchChatVotingProxy.cs b/TwitchChatVotingProxy/TwitchChatVotingProxy.cs index 9e78d536a..31e7706b3 100644 --- a/TwitchChatVotingProxy/TwitchChatVotingProxy.cs +++ b/TwitchChatVotingProxy/TwitchChatVotingProxy.cs @@ -96,7 +96,7 @@ private static async Task Main(string[] args) m_Logger.Information("Initializing controller"); var permittedUsernames = config.ReadValue("PermittedUsernames", "", "TwitchPermittedUsernames").ToLower() - .Split(',').Select(userName => userName.Trim()).ToArray(); + .Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToArray(); var chaosModControllerConfig = new ChaosModControllerConfig() { VotingMode = votingMode,