/** * Strip all the color junk from returns * @see GameQ_Filters_Core::filter() */ public function filter($data, GameQ_Protocols_Core $protocol_instance) { // Check the type of protocol switch ($protocol_instance->protocol()) { case 'quake2': case 'quake3': case 'doom3': array_walk_recursive($data, array($this, 'stripQuake')); break; case 'unreal2': case 'ut3': case 'gamespy3': //not sure if gamespy3 supports ut colors but won't hurt //not sure if gamespy3 supports ut colors but won't hurt case 'gamespy2': array_walk_recursive($data, array($this, 'stripUT')); break; default: break; } return $data; }