diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 1991fe9a6..58d8e1c5e 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -272,7 +272,7 @@ function executeSlashCommands(text) { // Hack to allow multi-line slash commands // All slash command messages should begin with a slash - const lines = [text]; + const lines = text.split('|').map(line => line.trim()); const linesToRemove = []; let interrupt = false;