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.
This commit is contained in:
UnknownShadow200 2016-11-28 09:48:28 +11:00
parent 26896d2f1b
commit 17d1beaad6

View File

@ -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);