From 17d1beaad60b0507ed08a228e6d22c35d0277646 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 28 Nov 2016 09:48:28 +1100 Subject: [PATCH] IRC: fix rare case of .x outputting to wrong channel. (Thanks 2k10) This happens if the name of the opchannel in server.properties is not the same case as the opchannel according to the IRC network. It's fixed now to perform a case insensitive comparison. --- MCGalaxy/Network/IRCBot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Network/IRCBot.cs b/MCGalaxy/Network/IRCBot.cs index 42fdfc24d..626fe41d9 100644 --- a/MCGalaxy/Network/IRCBot.cs +++ b/MCGalaxy/Network/IRCBot.cs @@ -256,7 +256,7 @@ namespace MCGalaxy { void Listener_OnPublic(UserInfo user, string channel, string message) { message = message.TrimEnd(); if (message.Length == 0) return; - bool opchat = channel == opchannel; + bool opchat = channel.CaselessEq(opchannel); message = Colors.IrcToMinecraftColors(message); message = CP437Reader.ConvertToRaw(message);