public function onReady()
{
if ($this->pool->identd) {
/** @noinspection PhpParamsInspection */
$this->getSocketName();
$this->pool->identd->registerPair($this->locAddr, $this->locPort, ['UNIX', $this->user]);
}
list($this->nick, $this->realname) = explode('/', $this->path . '/John Doe');
$this->command('USER', $this->user, 0, '*', $this->realname);
$this->command('NICK', $this->nick);
if (mb_orig_strlen($this->password)) {
$this->message('NickServ', 'IDENTIFY ' . $this->password);
}
}