Skip to content

Commit

Permalink
make .banall accept newline and tab delimiters, not just spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixrec committed Nov 26, 2023
1 parent 880643a commit 6e374e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Izzy-Moonbot/Modules/ModCoreModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public async Task TestableBanAllCommandAsync(
return;
}

var userArgs = usersString.Split(' ', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
var userArgs = usersString.Split(new char[] { ' ', '\r', '\n', '\t', '\v' }, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
foreach (var userArg in userArgs)
{
await TestableBanCommandAsync(context, userArg, false /* generateUserlogTemplate */);
Expand Down

0 comments on commit 6e374e2

Please sign in to comment.