Fix doing /me from console not showing on IRC and erroring instead

This commit is contained in:
UnknownShadow200 2021-01-02 11:37:53 +11:00
parent a46a07c315
commit b899c07036

View File

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