src/IrcConnection.php
protected function dispatchNumeric(\Erebot\Interfaces\Event\Numeric $numeric)
    {
        $logger = \Plop\Plop::getInstance();
        $logger->debug(
            $this->bot->gettext('Dispatching numeric %(code)s.'),
            array('code' => sprintf('%03d', $numeric->getCode()))
        );
        try {
            foreach ($this->numerics as $handler) {
                if ($handler->handleNumeric($numeric) === false) {
                    break;
                }
            }
        } catch (\Erebot\ErrorReportingException $e) {
            // This should help make the code a little more "bug-free" (TM).
            $logger->exception($this->bot->gettext('Code is not clean!'), $e);
            $this->disconnect($e->getMessage());
        }
    }
protected function dispatchNumeric(\Erebot\Interfaces\Event\Numeric $numeric)
    {
        $logger = \Plop\Plop::getInstance();
        $logger->debug(
            $this->bot->gettext('Dispatching numeric %(code)s.'),
            array('code' => sprintf('%03d', $numeric->getCode()))
        );
        try {
            foreach ($this->numerics as $handler) {
                if ($handler->handleNumeric($numeric) === false) {
                    break;
                }
            }
        } catch (\Erebot\ErrorReportingException $e) {
            // This should help make the code a little more "bug-free" (TM).
            $logger->exception($this->bot->gettext('Code is not clean!'), $e);
            $this->disconnect($e->getMessage());
        }
    }
protected function dispatchNumeric ( \ Erebot \ Interfaces \ Event \ Numeric $ numeric ) { $ logger = \ Plop \ Plop :: getInstance ( ) ; $ logger -> debug ( $ this -> bot -> gettext ( 'Dispatching numeric %(code)s.' ) , array ( 'code' => sprintf ( '%03d' , $ numeric -> getCode ( ) ) ) ) ; try { foreach ( $ this -> numerics as $ handler ) { if ( $ handler -> handleNumeric ( $ numeric ) === false ) { break ; } } } catch ( \ Erebot \ ErrorReportingException $ e ) { // This should help make the code a little more "bug-free" (TM). $ logger -> exception ( $ this -> bot -> gettext ( 'Code is not clean!' ) , $ e ) ; $ this -> disconnect ( $ e -> getMessage ( ) ) ; } }
Dispatches the given numeric event to handlers
which have been registered for this type of numeric.

\param Erebot::Interfaces::Event::Numeric $numeric
A numeric message to dispatch.
Dispatches the given numeric event to handlers which have been registered for this type of numeric .