import net.pterodactylus.irc.event.NoNicknameGivenReceived;
import net.pterodactylus.irc.event.PrivateMessageReceived;
import net.pterodactylus.irc.event.PrivateNoticeReceived;
+import net.pterodactylus.irc.event.ReplyReceived;
import net.pterodactylus.irc.event.UnknownReplyReceived;
import net.pterodactylus.irc.util.RandomNickname;
import net.pterodactylus.xdcc.util.io.BandwidthCountingInputStream;
while (connected) {
Reply reply = connectionHandler.readReply();
+ eventBus.post(new ReplyReceived(this, reply));
logger.finest(String.format("<< %s", reply));
String command = reply.command();
List<String> parameters = reply.parameters();
--- /dev/null
+/*
+ * XdccDownloader - ReplyReceived.java - Copyright © 2013 David Roden
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package net.pterodactylus.irc.event;
+
+import net.pterodactylus.irc.Connection;
+import net.pterodactylus.irc.Reply;
+
+/**
+ * Notifies a listener that a reply was received. This event is sent for
+ * <em>every</em> reply received by a {@link Connection}.
+ *
+ * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
+ */
+public class ReplyReceived extends AbstractReplyEvent {
+
+ /**
+ * Creates a new reply received event.
+ *
+ * @param connection
+ * The connection that received the event
+ * @param reply
+ * The reply that triggered the event
+ */
+ public ReplyReceived(Connection connection, Reply reply) {
+ super(connection, reply);
+ }
+
+}