} 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")) {
*
* @param connection
* The connection the event occured on
- * @param channel
- * The channel of the message
* @param source
* The source of the message
+ * @param channel
+ * The channel of the message
* @param message
* The text of the message
*/
- public ChannelMessageReceived(Connection connection, String channel, Source source, String message) {
+ public ChannelMessageReceived(Connection connection, Source source, String channel, String message) {
super(connection, channel);
this.source = source;
this.message = message;