EventListener/Irc/ServerRequestListener.php
private function processStringData(DataFromServerEvent $event)
    {
        $regex = "/^(?:[:@]([^\\s]+) )?([^\\s]+)(?: ((?:[^:\\s][^\\s]* ?)*))?(?: ?:(.*))?$/"; // @author Joshua Lückers (http://joshualuckers.nl/2010/01/10/regular-expression-to-match-raw-irc-messages/)
        preg_match($regex, $event->getData(), $matches);

        if (isset($matches[2]) && ('' !== trim($matches[2]))) {
            $this->dispatcher->dispatch('whisnet_irc_bot.irc_command_'.$matches[2], new IrcCommandFoundEvent($matches));
        }
    }
private function processStringData(DataFromServerEvent $event)
    {
        $regex = "/^(?:[:@]([^\\s]+) )?([^\\s]+)(?: ((?:[^:\\s][^\\s]* ?)*))?(?: ?:(.*))?$/"; // @author Joshua Lückers (http://joshualuckers.nl/2010/01/10/regular-expression-to-match-raw-irc-messages/)
        preg_match($regex, $event->getData(), $matches);

        if (isset($matches[2]) && ('' !== trim($matches[2]))) {
            $this->dispatcher->dispatch('whisnet_irc_bot.irc_command_'.$matches[2], new IrcCommandFoundEvent($matches));
        }
    }
private function processStringData ( DataFromServerEvent $ event ) { $ regex = "/^(?:[:@]([^\\s]+) )?([^\\s]+)(?: ((?:[^:\\s][^\\s]* ?)*))?(?: ?:(.*))?$/" ; // @author Joshua Lückers (http://joshualuckers.nl/2010/01/10/regular-expression-to-match-raw-irc-messages/) preg_match ( $ regex , $ event -> getData ( ) , $ matches ) ; if ( isset ( $ matches [ 2 ] ) && ( '' !== trim ( $ matches [ 2 ] ) ) ) { $ this -> dispatcher -> dispatch ( 'whisnet_irc_bot.irc_command_' . $ matches [ 2 ] , new IrcCommandFoundEvent ( $ matches ) ) ; } }
Process string response from server.

@param DataFromServerEvent $event
Process string response from server .