From b899c07036cd9749ba585721e300d1fac8f70731 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 2 Jan 2021 11:37:53 +1100 Subject: [PATCH] Fix doing /me from console not showing on IRC and erroring instead --- MCGalaxy/Network/IRCPlugin/IRCHandlers.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MCGalaxy/Network/IRCPlugin/IRCHandlers.cs b/MCGalaxy/Network/IRCPlugin/IRCHandlers.cs index 1ad64647f..9c244cc1d 100644 --- a/MCGalaxy/Network/IRCPlugin/IRCHandlers.cs +++ b/MCGalaxy/Network/IRCPlugin/IRCHandlers.cs @@ -122,7 +122,8 @@ namespace MCGalaxy.Network { } void HandlePlayerAction(Player p, PlayerAction action, string message, bool stealth) { - if (!p.level.SeesServerWideChat || action != PlayerAction.Me) return; + if (action != PlayerAction.Me) return; + if (p.level != null && p.level.SeesServerWideChat) return; bot.Say("*" + p.DisplayName + " " + message, stealth); }