Skip to content

Commit

Permalink
TwitchChatVotingProxy: Don't use fallback whitespace value for permit…
Browse files Browse the repository at this point in the history
…ted username whitelist

Fixes votes not registering if PermittedUsernames option is empty
  • Loading branch information
pongo1231 committed Aug 27, 2023
1 parent e3eaa13 commit 878677d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchChatVotingProxy/TwitchChatVotingProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 878677d

Please sign in to comment.