Fixed missing trim of commands (#5316).
This commit is contained in:
parent
8e51e5c25b
commit
9a3bf64417
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user