From cdc5fe0aa6fcc38eea459fd4e334db1536a68c32 Mon Sep 17 00:00:00 2001 From: Alexander B <4866817+MathyFurret@users.noreply.github.com> Date: Mon, 24 Oct 2022 18:09:55 -0500 Subject: [PATCH] Make `!calc` properly broadcast as a `!math` alias (#8950) --- server/chat-commands/info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/chat-commands/info.ts b/server/chat-commands/info.ts index 8d44299af0..0eb2f73779 100644 --- a/server/chat-commands/info.ts +++ b/server/chat-commands/info.ts @@ -1737,7 +1737,7 @@ export const commands: Chat.ChatCommands = { randbatscalc: 'calc', rcalc: 'calc', calc(target, room, user, connection, cmd) { - if (cmd === 'calc' && target) return this.parse(`/math ${target}`); + if (cmd === 'calc' && target) return this.run('calculate'); if (!this.runBroadcast()) return; const DEFAULT_CALC_COMMANDS = ['honkalculator', 'honkocalc']; const RANDOMS_CALC_COMMANDS = ['randomscalc', 'randbatscalc', 'rcalc'];