From 22802d74cb854045f96a8868e4deeaaec4059945 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 16 Oct 2014 22:36:33 +0200 Subject: [PATCH] Swap parameters of event. --- src/main/java/net/pterodactylus/irc/Connection.java | 2 +- .../java/net/pterodactylus/irc/event/ChannelMessageReceived.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/pterodactylus/irc/Connection.java b/src/main/java/net/pterodactylus/irc/Connection.java index f6b7913..931acc0 100644 --- a/src/main/java/net/pterodactylus/irc/Connection.java +++ b/src/main/java/net/pterodactylus/irc/Connection.java @@ -406,7 +406,7 @@ public class Connection extends AbstractExecutionThreadService implements Servic } 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")) { diff --git a/src/main/java/net/pterodactylus/irc/event/ChannelMessageReceived.java b/src/main/java/net/pterodactylus/irc/event/ChannelMessageReceived.java index 5cb6349..92aa293 100644 --- a/src/main/java/net/pterodactylus/irc/event/ChannelMessageReceived.java +++ b/src/main/java/net/pterodactylus/irc/event/ChannelMessageReceived.java @@ -38,14 +38,14 @@ public class ChannelMessageReceived extends AbstractChannelEvent { * * @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; -- 2.7.4