Compare command case-insensitively.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 16 Oct 2014 04:32:19 +0000 (06:32 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 16 Oct 2014 04:32:19 +0000 (06:32 +0200)
src/main/java/net/pterodactylus/irc/Connection.java

index 2f89414..0f5a065 100644 (file)
@@ -503,7 +503,7 @@ public class Connection extends AbstractExecutionThreadService implements Servic
                                        eventBus.post(new MotdReceived(this, motd.toString()));
                                        motd.setLength(0);
 
-                               } else if (command.equals("KICK")) {
+                               } else if (command.equalsIgnoreCase("KICK")) {
                                        eventBus.post(new KickedFromChannel(this, parameters.get(0), reply.source().get(), parameters.get(1), getOptional(parameters, 2)));
 
                                /* okay, everything else. */