} else if (!prefixHandler.isChannel(recipient)) {
eventBus.post(new PrivateMessageReceived(this, reply.source().get(), message));
} else {
- eventBus.post(new ChannelMessageReceived(this, recipient, reply.source().get(), message));
+ eventBus.post(new ChannelMessageReceived(this, reply.source().get(), recipient, message));
}
} else if (command.equalsIgnoreCase("NOTICE")) {
/* CTCP! */
handleCtcp(reply.source().get(), message);
} else if (!prefixHandler.isChannel(recipient)) {
- eventBus.post(new PrivateNoticeReceived(this, reply));
+ eventBus.post(new PrivateNoticeReceived(this, reply.source().get(), message));
} else {
eventBus.post(new ChannelNoticeReceived(this, reply.source().get(), recipient, message));
}