From: David ‘Bombe’ Roden Date: Thu, 11 Apr 2013 20:11:27 +0000 (+0200) Subject: Ignore case of channel names when locating the channel. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=eda3f8c0d1a738ebd82bf59813411c6047087b2c;p=xudocci.git Ignore case of channel names when locating the channel. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 077ba9d..248f765 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -472,7 +472,7 @@ public class Core extends AbstractIdleService { */ public Optional getChannel(Network network, String channelName) { for (Channel channel : channels) { - if (channel.network().equals(network) && (channel.name().equals(channelName))) { + if (channel.network().equals(network) && (channel.name().equalsIgnoreCase(channelName))) { return Optional.of(channel); } }