public function changeNick($newnick, $priority = SMARTIRC_MEDIUM)
    {
        $this->_nick = $newnick;
        return $this->send('NICK '.$newnick, $priority);
    }
public function changeNick($newnick, $priority = SMARTIRC_MEDIUM)
    {
        $this->_nick = $newnick;
        return $this->send('NICK '.$newnick, $priority);
    }
public function changeNick ( $ newnick , $ priority = SMARTIRC_MEDIUM ) { $ this -> _nick = $ newnick ; return $ this -> send ( 'NICK ' . $ newnick , $ priority ) ; }
changes the own nickname

Trys to set a new nickname, nickcollisions are handled.

@param string $newnick
@param integer $priority message priority, default is SMARTIRC_MEDIUM
@return Net_SmartIRC
@api
changes the own nickname