From 9504921f275af9612c07b718fcbaa75eab814bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Mon, 19 Dec 2022 00:14:30 +0100 Subject: [PATCH] Fallback to 0 instead of 1 --- .../wtf/beatrice/hidekobot/commands/message/ClearCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/wtf/beatrice/hidekobot/commands/message/ClearCommand.java b/src/main/java/wtf/beatrice/hidekobot/commands/message/ClearCommand.java index 0635dc6..aea9afb 100644 --- a/src/main/java/wtf/beatrice/hidekobot/commands/message/ClearCommand.java +++ b/src/main/java/wtf/beatrice/hidekobot/commands/message/ClearCommand.java @@ -49,7 +49,7 @@ public class ClearCommand implements MessageCommand toDeleteAmount = Integer.parseInt(args[0]); } catch (NumberFormatException e) { - toDeleteAmount = 1; + toDeleteAmount = 0; } }