public function joinOnMatch($nickname, UserEventInterface $event, EventQueueInterface $queue)
    {
        if ($nickname == $event->getConnection()->getNickname()
            && ($index = array_search($event->getSource(), $this->channels)) !== false) {
            $queue->ircJoin($this->channels[$index],
                $this->keys ? $this->keys[$index] : null);
        }
    }
public function joinOnMatch($nickname, UserEventInterface $event, EventQueueInterface $queue)
    {
        if ($nickname == $event->getConnection()->getNickname()
            && ($index = array_search($event->getSource(), $this->channels)) !== false) {
            $queue->ircJoin($this->channels[$index],
                $this->keys ? $this->keys[$index] : null);
        }
    }
public function joinOnMatch ( $ nickname , UserEventInterface $ event , EventQueueInterface $ queue ) { if ( $ nickname == $ event -> getConnection ( ) -> getNickname ( ) && ( $ index = array_search ( $ event -> getSource ( ) , $ this -> channels ) ) !== false ) { $ queue -> ircJoin ( $ this -> channels [ $ index ] , $ this -> keys ? $ this -> keys [ $ index ] : null ) ; } }
Joins a channel if nickname and channel matches the own nickname
and a channel in 'channels' configuration respectively.

@param string $nickname
@param \Phergie\Irc\Event\UserEventInterface $event
@param \Phergie\Irc\Bot\React\EventQueueInterface $queue
Joins a channel if nickname and channel matches the own nickname and a channel in channels configuration respectively .