Fixed #169 and fixed #168

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-30 13:11:06 +01:00
parent efa8692bfa
commit cbe160e655
2 changed files with 2 additions and 1 deletions

View File

@ -412,7 +412,7 @@ class Player{
break;
case "server.chat":
if(($data instanceof Container) === true){
if(!$data->check($this->username) or !$data->check($this->iusername)){
if(!$data->check($this->username) and !$data->check($this->iusername)){
return;
}else{
$message = $data->get();

View File

@ -36,6 +36,7 @@ if(strpos(strtoupper(php_uname("s")), "WIN") === false or arg("enable-ansi", fal
}else{
define("ENABLE_ANSI", false);
}
set_error_handler("fatal_handler", E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_RECOVERABLE_ERROR | E_DEPRECATED);
$errors = 0;