mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Commands such as /me shouldn't show on IRC when map has level only chat. Fixes #386
This commit is contained in:
parent
32be585c35
commit
bef2cc4469
@ -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) {
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user