From 3a0676d7c760118f2666d7375e8d69dcbe5b28b8 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:33:44 +0700 Subject: [PATCH] https://files.chipmunk.land/selif/t2l8l0r5.png --- src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {