diff --git a/src/SlashCommands.tsx b/src/SlashCommands.tsx index 0215d5d689..0df53d02ae 100644 --- a/src/SlashCommands.tsx +++ b/src/SlashCommands.tsx @@ -994,7 +994,7 @@ Commands.forEach((cmd) => { export function parseCommandString(input: string): { cmd?: string; args?: string } { // trim any trailing whitespace, as it can confuse the parser for IRC-style commands input = input.trimEnd(); - if (input.startsWith("/")) return {}; // not a command + if (!input.startsWith("/")) return {}; // not a command const bits = input.match(/^(\S+?)(?:[ \n]+((.|\n)*))?$/); let cmd: string;