From 7cf662fb81e665a618d6afc67843a849cfc9dd09 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 7 Dec 2013 12:44:23 +0100 Subject: [PATCH] Only show private messages in console when the sender or the target is the console --- src/API/ChatAPI.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/API/ChatAPI.php b/src/API/ChatAPI.php index 945c7efb..dadc1179 100644 --- a/src/API/ChatAPI.php +++ b/src/API/ChatAPI.php @@ -90,7 +90,9 @@ class ChatAPI{ if($target !== "Console" and $target !== "Rcon"){ $this->sendTo(false, "[".$sender." -> me] ".$mes, $target); } - console("[INFO] [".$sender." -> ".$target."] ".$mes); + if($target === "Console" or $sender === "Console"){ + console("[INFO] [".$sender." -> ".$target."] ".$mes); + } break; } return $output;