Stop stripping prefixes in CommandHandler, they're already stripped.

This commit is contained in:
gnuxie committed 2024-04-06 20:03:35 +01:00
1 parent ac4c447637
commit 73f2910b8e
1 file changed
+1 -1
+1 -1
View File
@@ -76,7 +76,7 @@ export async function handleCommand(
commandTable: CommandTable<BaseFunction>
) {
try {
const readItems = readCommand(normalisedCommand).slice(1); // remove "!mjolnir"
const readItems = readCommand(normalisedCommand)
const stream = new ArgumentStream(readItems);
const command = commandTable.findAMatchingCommand(stream)
?? findTableCommand("mjolnir", "help");