protected function get_nickname($name) { if (preg_match("/[\\(|\"].*?[\\)|\"]/", $name, $matches)) { if (!in_array(strtolower($matches[0]), $this->not_nicknames)) { return $matches[0]; } else { return false; } } return false; }