From eed5c5fe8acf6f16bc29bd3e4e1688d60e0a21b0 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sun, 26 Apr 2020 15:20:19 +0100 Subject: [PATCH] corrects a issue where command||| without anything after it would give a null arg when it should be ignored --- Core/bottypes/MessageSwitcherBot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/bottypes/MessageSwitcherBot.cs b/Core/bottypes/MessageSwitcherBot.cs index 994c53e..166e608 100644 --- a/Core/bottypes/MessageSwitcherBot.cs +++ b/Core/bottypes/MessageSwitcherBot.cs @@ -89,7 +89,7 @@ namespace BSB.bottypes } else if (myconfig.master == sender_name) { - List bits = message.Split(new[] { "|||" }, StringSplitOptions.None).ToList(); + List bits = message.Split(new[] { "|||" }, StringSplitOptions.RemoveEmptyEntries).ToList(); if (bits.Count == 1) { bits.Add("");