Skip to content

Commit

Permalink
[BUG] Fix for issue #41. Use correct MessageAuthor for Say Command
Browse files Browse the repository at this point in the history
  • Loading branch information
hypherionmc committed Feb 25, 2023
1 parent 668fb30 commit abb403d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ public Builder(BotController controller, MessageType messageType) {

public Builder withAuthor(MessageAuthor author) {
this.author = author;

if (author.getUsername().equalsIgnoreCase("server")) {
this.author = MessageAuthor.SERVER;
}

return this;
}

Expand Down

0 comments on commit abb403d

Please sign in to comment.