From 9a3bf644175de61b5c18f61d6301ec2b0597cf40 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 9 Apr 2021 16:41:39 +0200 Subject: [PATCH] Fixed missing trim of commands (#5316). --- src/org/april/hebdobot/bot/Hebdobot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/april/hebdobot/bot/Hebdobot.java b/src/org/april/hebdobot/bot/Hebdobot.java index 17d1a42..12d4f1b 100644 --- a/src/org/april/hebdobot/bot/Hebdobot.java +++ b/src/org/april/hebdobot/bot/Hebdobot.java @@ -331,7 +331,7 @@ public class Hebdobot extends PircBot this.review.addRaw(new Message(sender, text)); } - text = message.replaceAll("^" + getName().replace("[", "\\[").replaceAll("]", "\\]") + "[,:]\\s*", "!"); + text = text.replaceAll("^" + getName().replace("[", "\\[").replaceAll("]", "\\]") + "[,:]\\s*", "!"); try {