diff --git a/src/main/java/me/chayapak1/chomens_bot/commands/GrepLogCommand.java b/src/main/java/me/chayapak1/chomens_bot/commands/GrepLogCommand.java index 4dfc3f1..f8b5e08 100644 --- a/src/main/java/me/chayapak1/chomens_bot/commands/GrepLogCommand.java +++ b/src/main/java/me/chayapak1/chomens_bot/commands/GrepLogCommand.java @@ -52,6 +52,7 @@ public class GrepLogCommand extends Command { if (thread == null) throw new CommandException(Component.text("There is no query process running")); bot.grepLog.running = false; + bot.grepLog.pattern = null; thread.interrupt(); // ? should i interrupt it this way? diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java index fa8857b..1db535c 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java @@ -28,7 +28,7 @@ import java.util.zip.GZIPInputStream; public class GrepLogPlugin { private final Bot bot; - private Pattern pattern; + public Pattern pattern; private int count = 0;