Fixed Container::check() blacklist

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-23 18:21:37 +02:00
parent 13aa73d26e
commit fea6e9c432
3 changed files with 4 additions and 6 deletions

View File

@ -115,7 +115,7 @@ class ChatAPI{
}
}
$message .= $text;
if($whitelist === false and $blacklist === false){
if($whitelist === false){
console("[INFO] ".$message);
}
$this->server->handle("server.chat", new Container($message, $whitelist, $blacklist));

View File

@ -31,7 +31,7 @@ Source: https://developer.valvesoftware.com/wiki/Source_RCON_Protocol
*/
class RCON{
private $socket, $password, $workers, $threads;
private $socket, $password, $workers, $threads, $clientsPerThread;
public function __construct($password, $port = 19132, $interface = "0.0.0.0", $threads = 1, $clientsPerThread = 50){
$this->workers = array();
@ -90,7 +90,6 @@ class RCONInstance extends Thread{
public $response;
private $socket;
private $password;
private $status;
private $maxClients;
public function __construct($socket, $password, $maxClients = 50){
@ -105,7 +104,6 @@ class RCONInstance extends Thread{
$this->{"status".$n} = 0;
$this->{"timeout".$n} = 0;
}
$this->status = array();
$this->start();
}

View File

@ -53,9 +53,9 @@ class Container{
$w = true;
}
if($this->blacklist !== false){
$b = true;
$b = false;
if(in_array($target, $this->blacklist, true)){
$b = false;
$b = true;
}
}else{
$b = false;