corrects a issue where command||| without anything after it would give a null arg when it should be ignored
This commit is contained in:
parent
9d127a8b23
commit
eed5c5fe8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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("");
|
||||
|
|
|
|||
Loading…
Reference in a new issue