Update ChatAPI.php

This commit is contained in:
ArkQuark 2022-03-07 23:33:06 +03:00
parent 4bf4a481a6
commit ca242cc262

View file

@ -87,12 +87,12 @@ class ChatAPI{
} }
} }
$mes = implode(" ", $params); $mes = implode(" ", $params);
$output .= "[me -> ".$target."] ".$mes."\n"; $output .= "You're whispering to ".$target." ".$mes."\n";
if($target !== "Console" and $target !== "Rcon"){ if($target !== "Console" and $target !== "Rcon"){
$this->sendTo(false, "[".$sender." -> me] ".$mes, $target); $this->sendTo(false, $sender." whispers to you: ".$mes, $target);
} }
if($target === "Console" or $sender === "Console"){ if($target === "Console" or $sender === "Console"){
console("[INFO] [".$sender." -> ".$target."] ".$mes); console("[INFO] ".$sender." whispers to ".$target." : "$mes);
} }
break; break;
} }