Skip to content

Commit

Permalink
Fix argument parsing forcing all passwords to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Nov 19, 2022
1 parent 771b684 commit b8e51ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EOBot/ArgumentsParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ public ArgumentsParser(string[] args)
break;
}

var pair = arg.ToLower().Split('=');
var pair = arg.Split('=');

if (pair.Length != 2)
{
Error = ArgsError.BadFormat;
return;
}

switch (pair[0])
switch (pair[0].ToLower())
{
case "script":
if (!File.Exists(pair[1]))
Expand Down

0 comments on commit b8e51ee

Please sign in to comment.