src/Plugin.php
public function handleNicknameInUse(ServerEvent $event, Queue $queue)
    {
        // Don't listen if ghost isn't enabled, or this isn't the first nickname-in-use error
        if (!$this->ghostEnabled || $this->ghostNick !== null) {
            return;
        }

        // Save the nick, so that we can send a ghost request once registration is complete
        $params = $event->getParams();
        $this->ghostNick = $params[1];
    }
public function handleNicknameInUse(ServerEvent $event, Queue $queue)
    {
        // Don't listen if ghost isn't enabled, or this isn't the first nickname-in-use error
        if (!$this->ghostEnabled || $this->ghostNick !== null) {
            return;
        }

        // Save the nick, so that we can send a ghost request once registration is complete
        $params = $event->getParams();
        $this->ghostNick = $params[1];
    }
public function handleNicknameInUse ( ServerEvent $ event , Queue $ queue ) { // Don't listen if ghost isn't enabled, or this isn't the first nickname-in-use error if ( ! $ this -> ghostEnabled || $ this -> ghostNick !== null ) { return ; } // Save the nick, so that we can send a ghost request once registration is complete $ params = $ event -> getParams ( ) ; $ this -> ghostNick = $ params [ 1 ] ; }
Kick-starts the ghost process.

@param \Phergie\Irc\Event\ServerEventInterface $event
@param \Phergie\Irc\Bot\React\EventQueueInterface $queue
Kick - starts the ghost process .