diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java index 70c3e2b..0b929fd 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java @@ -112,7 +112,7 @@ public class IRCPlugin extends ListenerAdapter { if (user == null) return; - final String name = user.getRealName(); + final String name = user.getRealName().isBlank() ? user.getNick() : user.getRealName(); final String message = event.getMessage(); if (message.startsWith(commandPrefix)) {