mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-06 04:14:15 +00:00
parseCommand cut "/name@bot args" only at a space. A command whose arguments followed on the next line or after a tab kept them in the name: "/task\n42" was answered as an unknown command, and "/task@bot\n42" read the bot name as "bot\n42", did not match, and was ignored as addressed to another bot. Split at the first unicode.IsSpace rune instead. Arguments that already followed a space are unchanged, including multi-line ones.