From: David ‘Bombe’ Roden Date: Thu, 16 Oct 2014 04:32:19 +0000 (+0200) Subject: Compare command case-insensitively. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0c1e22c6e67346725d5fd5a21617a96b60c50d61;p=xudocci.git Compare command case-insensitively. --- diff --git a/src/main/java/net/pterodactylus/irc/Connection.java b/src/main/java/net/pterodactylus/irc/Connection.java index 2f89414..0f5a065 100644 --- a/src/main/java/net/pterodactylus/irc/Connection.java +++ b/src/main/java/net/pterodactylus/irc/Connection.java @@ -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. */