Only show private messages in console when the sender or the target is the console

This commit is contained in:
Shoghi Cervantes 2013-12-07 12:44:23 +01:00
parent 894325aef6
commit 7cf662fb81

View File

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