Remove currently unused parameter from event.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 22 Oct 2014 17:48:32 +0000 (19:48 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 22 Oct 2014 17:48:36 +0000 (19:48 +0200)
src/main/java/net/pterodactylus/irc/Connection.java
src/main/java/net/pterodactylus/irc/event/NoNicknameGivenReceived.java

index 9d9ef72..45795f3 100644 (file)
@@ -390,7 +390,7 @@ public class Connection extends AbstractExecutionThreadService implements Servic
 
                                /* 43x replies are for nick change errors. */
                                if (command.equals("431")) {
 
                                /* 43x replies are for nick change errors. */
                                if (command.equals("431")) {
-                                       eventBus.post(new NoNicknameGivenReceived(this, reply));
+                                       eventBus.post(new NoNicknameGivenReceived(this));
                                } else if (command.equals("433")) {
                                        if (!established.get()) {
                                                nickname = nicknameChooser.getNickname();
                                } else if (command.equals("433")) {
                                        if (!established.get()) {
                                                nickname = nicknameChooser.getNickname();
index aba2fb2..9733ada 100644 (file)
@@ -25,18 +25,16 @@ import net.pterodactylus.irc.Reply;
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
-public class NoNicknameGivenReceived extends AbstractReplyEvent {
+public class NoNicknameGivenReceived extends AbstractConnectionEvent {
 
        /**
         * Creates a new no nickname given event.
         *
         * @param connection
         *              The connection the event occured on
 
        /**
         * Creates a new no nickname given event.
         *
         * @param connection
         *              The connection the event occured on
-        * @param reply
-        *              The reply that caused the event
         */
         */
-       public NoNicknameGivenReceived(Connection connection, Reply reply) {
-               super(connection, reply);
+       public NoNicknameGivenReceived(Connection connection) {
+               super(connection);
        }
 
 }
        }
 
 }