From d7079df83d6f44984905b2b717fb4d0f6a7e22d4 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sat, 20 Apr 2019 19:33:39 +0300 Subject: [PATCH] Make !slowmode 0 an alias for !slowmode disable --- src/plugins/Slowmode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/Slowmode.ts b/src/plugins/Slowmode.ts index a4bd3eda..0838c80e 100644 --- a/src/plugins/Slowmode.ts +++ b/src/plugins/Slowmode.ts @@ -240,7 +240,7 @@ export class SlowmodePlugin extends ZeppelinPlugin { const useNativeSlowmode = this.getConfigForChannel(channel).use_native_slowmode && seconds <= NATIVE_SLOWMODE_LIMIT; if (seconds === 0) { - return this.disableSlowmodeCmd(msg, { channel: args.channel }); + return this.disableSlowmodeCmd(msg, { channel }); } if (seconds > MAX_SLOWMODE) {