Commit 57631c3a authored by Delorus's avatar Delorus
Browse files

(admin) fix command parsing

parent 57cb7208
Pipeline #432 passed with stages
in 4 minutes and 33 seconds
......@@ -6,6 +6,9 @@ public class ParserMessage {
public Command getCommandFromMessage(String message) {
String messageToUpperCase = commandUtils.normalizeCmdMsg(message).toUpperCase().trim();
if (message.contains(" ")) {
messageToUpperCase = message.substring(0, messageToUpperCase.indexOf(" "));
}
Command command = Command.NONE;
try {
command = Command.valueOf(messageToUpperCase);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment