Fixed missing trim of commands (#5316).

This commit is contained in:
Christian P. MOMON 2021-04-09 16:41:39 +02:00
parent 8e51e5c25b
commit 9a3bf64417

View File

@ -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
{