Skip to content

Commit

Permalink
Fix empty command
Browse files Browse the repository at this point in the history
  • Loading branch information
jie65535 committed Sep 2, 2023
1 parent 6279ed2 commit f8a4e6f
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -159,6 +159,8 @@ public static void handle(Context context) {
try {
handler.setLength(0);
for (var command : rawMessage.split("\n[/!]|\\|")) {
command = command.trim();
if (command.isEmpty()) continue;
if (command.charAt(0) == '/' || command.charAt(0) == '!') {
command = command.substring(1);
}
Expand Down

0 comments on commit f8a4e6f

Please sign in to comment.