mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
Make !calc properly broadcast as a !math alias (#8950)
This commit is contained in:
parent
906d5b2692
commit
cdc5fe0aa6
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user