public function onJoin(Event $event)
    {
        $msg = $event->getMessage();

        if (!isset($msg['nick'])) {
            return;
        }

        $chan = $msg['params']['channels'];
        $nick = $msg['nick'];

        $this->storage->setUserMode($nick, $chan, self::REGULAR);
    }
public function onJoin(Event $event)
    {
        $msg = $event->getMessage();

        if (!isset($msg['nick'])) {
            return;
        }

        $chan = $msg['params']['channels'];
        $nick = $msg['nick'];

        $this->storage->setUserMode($nick, $chan, self::REGULAR);
    }
public function onJoin ( Event $ event ) { $ msg = $ event -> getMessage ( ) ; if ( ! isset ( $ msg [ 'nick' ] ) ) { return ; } $ chan = $ msg [ 'params' ] [ 'channels' ] ; $ nick = $ msg [ 'nick' ] ; $ this -> storage -> setUserMode ( $ nick , $ chan , self :: REGULAR ) ; }
Tracks users joining a channel

@param  Event  $event Event object
Tracks users joining a channel