src/Plugin.php
public function handleQuit(UserEvent $event, Queue $queue)
    {
        $nick = $event->getNick();
        if ($this->primaryNick !== null && $nick == $this->primaryNick) {
            $this->logger->debug("[AltNick] '$nick' disconnected, switching to primary nick");
            $queue->ircNick($this->primaryNick);
            $this->primaryNick = null;
        }
    }
public function handleQuit(UserEvent $event, Queue $queue)
    {
        $nick = $event->getNick();
        if ($this->primaryNick !== null && $nick == $this->primaryNick) {
            $this->logger->debug("[AltNick] '$nick' disconnected, switching to primary nick");
            $queue->ircNick($this->primaryNick);
            $this->primaryNick = null;
        }
    }
public function handleQuit ( UserEvent $ event , Queue $ queue ) { $ nick = $ event -> getNick ( ) ; if ( $ this -> primaryNick !== null && $ nick == $ this -> primaryNick ) { $ this -> logger -> debug ( "[AltNick] '$nick' disconnected, switching to primary nick" ) ; $ queue -> ircNick ( $ this -> primaryNick ) ; $ this -> primaryNick = null ; } }
Handle primary nick recovery.

@param \Phergie\Irc\Event\UserEventInterface $event
@param \Phergie\Irc\Bot\React\EventQueueInterface $queue
Handle primary nick recovery .