corrects a issue where command||| without anything after it would give a null arg when it should be ignored

This commit is contained in:
Madpeter 2020-04-26 15:20:19 +01:00
parent 9d127a8b23
commit eed5c5fe8a

View file

@ -89,7 +89,7 @@ namespace BSB.bottypes
}
else if (myconfig.master == sender_name)
{
List<string> bits = message.Split(new[] { "|||" }, StringSplitOptions.None).ToList();
List<string> bits = message.Split(new[] { "|||" }, StringSplitOptions.RemoveEmptyEntries).ToList();
if (bits.Count == 1)
{
bits.Add("");