Make !slowmode 0 an alias for !slowmode disable

This commit is contained in:
Dragory 2019-04-20 19:33:39 +03:00
parent 3700a2a4c5
commit d7079df83d

View file

@ -240,7 +240,7 @@ export class SlowmodePlugin extends ZeppelinPlugin<ISlowmodePluginConfig> {
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) {