public function onNameReply(Event $event)
    {
        $msg = $event->getMessage();
        $chan = $msg['params'][2];
        $names = explode(' ', $msg['params'][3]);

        foreach ($names as $nick) {
            $mode = self::REGULAR;
            $prefix = $nick[0];

            if (isset(self::$modesPrefix[$prefix])) {
                $mode |= self::$modesNum[self::$modesPrefix[$prefix]];
                $nick = substr($nick, 1);
            }

            $this->storage->setUserMode($nick, $chan, $mode);
        }
    }
public function onNameReply(Event $event)
    {
        $msg = $event->getMessage();
        $chan = $msg['params'][2];
        $names = explode(' ', $msg['params'][3]);

        foreach ($names as $nick) {
            $mode = self::REGULAR;
            $prefix = $nick[0];

            if (isset(self::$modesPrefix[$prefix])) {
                $mode |= self::$modesNum[self::$modesPrefix[$prefix]];
                $nick = substr($nick, 1);
            }

            $this->storage->setUserMode($nick, $chan, $mode);
        }
    }
public function onNameReply ( Event $ event ) { $ msg = $ event -> getMessage ( ) ; $ chan = $ msg [ 'params' ] [ 2 ] ; $ names = explode ( ' ' , $ msg [ 'params' ] [ 3 ] ) ; foreach ( $ names as $ nick ) { $ mode = self :: REGULAR ; $ prefix = $ nick [ 0 ] ; if ( isset ( self :: $ modesPrefix [ $ prefix ] ) ) { $ mode |= self :: $ modesNum [ self :: $ modesPrefix [ $ prefix ] ] ; $ nick = substr ( $ nick , 1 ) ; } $ this -> storage -> setUserMode ( $ nick , $ chan , $ mode ) ; } }
Populates the internal user listing for a channel when the bot joins it.

@param  Event  $event Event object
Populates the internal user listing for a channel when the bot joins it .