public function handleJoin(
        \Erebot\Interfaces\EventHandler $handler,
        \Erebot\Interfaces\Event\Join   $event
    ) {
        $user       = $event->getSource();
        $nick       = $user->getNick();
        $collator   = $this->connection->getCollator();
        $normNick   = $collator->normalizeNick($nick);

        $this->updateUser(
            $nick,
            $user->getIdent(),
            $user->getHost(\Erebot\Interfaces\Identity::CANON_IPV6)
        );
        $key = array_search($normNick, $this->nicks);
        $this->chans[$event->getChan()][$key] = array();
    }
public function handleJoin(
        \Erebot\Interfaces\EventHandler $handler,
        \Erebot\Interfaces\Event\Join   $event
    ) {
        $user       = $event->getSource();
        $nick       = $user->getNick();
        $collator   = $this->connection->getCollator();
        $normNick   = $collator->normalizeNick($nick);

        $this->updateUser(
            $nick,
            $user->getIdent(),
            $user->getHost(\Erebot\Interfaces\Identity::CANON_IPV6)
        );
        $key = array_search($normNick, $this->nicks);
        $this->chans[$event->getChan()][$key] = array();
    }
public function handleJoin ( \ Erebot \ Interfaces \ EventHandler $ handler , \ Erebot \ Interfaces \ Event \ Join $ event ) { $ user = $ event -> getSource ( ) ; $ nick = $ user -> getNick ( ) ; $ collator = $ this -> connection -> getCollator ( ) ; $ normNick = $ collator -> normalizeNick ( $ nick ) ; $ this -> updateUser ( $ nick , $ user -> getIdent ( ) , $ user -> getHost ( \ Erebot \ Interfaces \ Identity :: CANON_IPV6 ) ) ; $ key = array_search ( $ normNick , $ this -> nicks ) ; $ this -> chans [ $ event -> getChan ( ) ] [ $ key ] = array ( ) ; }
Handles some user joining an IRC channel
the bot is currently on.

\param Erebot::Interfaces::EventHandler $handler
Handler that triggered this event.

\param Erebot::Interfaces::Event::Join $event
Event indicating that some user joined
a channel the bot is on.

@SuppressWarnings(PHPMD.UnusedFormalParameter)
Handles some user joining an IRC channel the bot is currently on .