From: David ‘Bombe’ Roden Date: Thu, 16 Oct 2014 20:36:33 +0000 (+0200) Subject: Swap parameters of event. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=22802d74cb854045f96a8868e4deeaaec4059945;p=xudocci.git Swap parameters of event. --- 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;