private function login()
    {
        if (isset($this->config['connection_password'])) {
            $this->send(Response::pass($this->config['connection_password']));
        }

        $this->send(Response::nick($this->config['nick']));
        $this->send(Response::user(
            $this->config['username'],
            $this->config['realname']
        ));

        if (isset($this->config['password'])) {
            $this->send(Response::msg(
                'NickServ',
                'IDENTIFY ' . $this->config['password']
            ));
        }
    }
private function login()
    {
        if (isset($this->config['connection_password'])) {
            $this->send(Response::pass($this->config['connection_password']));
        }

        $this->send(Response::nick($this->config['nick']));
        $this->send(Response::user(
            $this->config['username'],
            $this->config['realname']
        ));

        if (isset($this->config['password'])) {
            $this->send(Response::msg(
                'NickServ',
                'IDENTIFY ' . $this->config['password']
            ));
        }
    }
private function login ( ) { if ( isset ( $ this -> config [ 'connection_password' ] ) ) { $ this -> send ( Response :: pass ( $ this -> config [ 'connection_password' ] ) ) ; } $ this -> send ( Response :: nick ( $ this -> config [ 'nick' ] ) ) ; $ this -> send ( Response :: user ( $ this -> config [ 'username' ] , $ this -> config [ 'realname' ] ) ) ; if ( isset ( $ this -> config [ 'password' ] ) ) { $ this -> send ( Response :: msg ( 'NickServ' , 'IDENTIFY ' . $ this -> config [ 'password' ] ) ) ; } }
Logs in to the IRC server with the user info in the config.
Logs in to the IRC server with the user info in the config .