mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 06:04:46 -04:00
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:
parent
26896d2f1b
commit
17d1beaad6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user