Commands such as /me shouldn't show on IRC when map has level only chat. Fixes #386

This commit is contained in:
UnknownShadow200 2017-06-26 12:52:42 +10:00
parent 32be585c35
commit bef2cc4469
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ namespace MCGalaxy.Commands.Chatting {
}
static bool Sees8Ball(Player p) {
return !p.ignoreAll && !p.ignore8ball && p.level.worldChat && p.Chatroom == null;
return !p.ignoreAll && !p.ignore8ball && p.level.SeesServerWideChat && p.Chatroom == null;
}
public override void Help(Player p) {

View File

@ -72,7 +72,7 @@ namespace MCGalaxy.Network {
void Player_PlayerAction(Player p, PlayerAction action,
string message, bool stealth) {
if (!Server.IRC.Enabled) return;
if (!Server.IRC.Enabled || !p.level.SeesServerWideChat) return;
string msg = null;
if (action == PlayerAction.AFK && Server.ircShowAFK && !p.hidden)