getNick()) == $nick) { return $user; } } return NULL; } private $numeric; private $nick; private $ident; private $host; private $ip; private $connect_time; private $modes; private $realname; public function __construct($nick, $numeric, $server, $connect_time, $ident, $host, $ip, $realname, $modes) { $this->nick = $nick; $this->numeric = $numeric; $this->server = $server; $this->connect_time = $connect_time; $this->ident = $ident; $this->host = $host; $this->ip = $ip; $this->realname = $realname; $this->modes = $modes; $server->addUser($this); self::$static_users[$numeric] = $this; } public function getNumeric() { return $this->numeric; } public function setNick($nick) { $this->nick = $nick; } public function getNick() { return $this->nick; } public function setIdent($ident) { $this->ident = $ident; } public function getIdent() { return $this->ident; } public function getHost() { return $this->host; } public function getIP() { return $this->ip; } public function getConnectTime() { return $this->connect_time; } public function getModes() { return $this->modes; } public function getRealname() { return $this->realname; } public function quit($reason) { $this->server->delUser($this); } } ?>