protected function getChannels(UserEventInterface $event)
    {
        $command = $event->getCommand();
        if (isset($this->parameters[$command])) {
            $params = $event->getParams();
            $param = $this->parameters[$command];
            return preg_grep('/^[#&]/', explode(',', $params[$param]));
        }
        return array();
    }
protected function getChannels(UserEventInterface $event)
    {
        $command = $event->getCommand();
        if (isset($this->parameters[$command])) {
            $params = $event->getParams();
            $param = $this->parameters[$command];
            return preg_grep('/^[#&]/', explode(',', $params[$param]));
        }
        return array();
    }
protected function getChannels ( UserEventInterface $ event ) { $ command = $ event -> getCommand ( ) ; if ( isset ( $ this -> parameters [ $ command ] ) ) { $ params = $ event -> getParams ( ) ; $ param = $ this -> parameters [ $ command ] ; return preg_grep ( '/^[#&]/' , explode ( ',' , $ params [ $ param ] ) ) ; } return array ( ) ; }
Extracts a list of channel names from a user event.

@param \Phergie\Irc\Event\UserEventInterface $event
@return array
Extracts a list of channel names from a user event .