Phergie\Irc\Client\React\Client::identifyUser PHP Méthode

identifyUser() protected méthode

Identifies the user to a server.
protected identifyUser ( Phergie\Irc\ConnectionInterface $connection, Phergie\Irc\Client\React\WriteStream $writeStream )
$connection Phergie\Irc\ConnectionInterface Connection on which to identify the user
$writeStream Phergie\Irc\Client\React\WriteStream Stream to receive commands identifying the user
    protected function identifyUser(ConnectionInterface $connection, WriteStream $writeStream)
    {
        $password = $connection->getPassword();
        if ($password) {
            $writeStream->ircPass($password);
        }
        $writeStream->ircUser($connection->getUsername(), $connection->getHostname(), $connection->getServername(), $connection->getRealname());
        $writeStream->ircNick($connection->getNickname());
    }