Commit 46cbf090 authored by Adam Gausmann's avatar Adam Gausmann

Fix an issue with * notices

parent d94fc40e
Pipeline #5062266 passed with stages
in 15 seconds
......@@ -43,7 +43,7 @@ public class ConnectionImpl implements Connection {
String target = message.getArg(0);
String text = message.getArg(1);
bot.getEventSystem().dispatchEvent(new NoticeEvent(getUser(sender),
recipientByName(target), text));
target.equals("*") ? recipientByName(getNickname()) : recipientByName(target), text));
}
else if (message.getCommand().equalsIgnoreCase("JOIN")) {
String user = message.senderName();
......
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