src/IrcParser.php
protected function watchList($event, $msg)
    {
        // <bot> <nick> <ident> <host> <timestamp> :<msg>
        unset($msg[0]);
        $nick       = $msg[0];
        $ident      = $msg[1];
        $host       = $msg[2];
        $timestamp  = intval($msg[3], 10);
        $timestamp  = new \DateTime('@'.$timestamp);
        $text       = $msg[4];

        return $this->connection->dispatch(
            $this->makeEvent(
                $event,
                $nick,
                ($ident == '*' ? null : $ident),
                ($host == '*' ? null : $host),
                $timestamp,
                $text
            )
        );
    }
protected function watchList($event, $msg)
    {
        // <bot> <nick> <ident> <host> <timestamp> :<msg>
        unset($msg[0]);
        $nick       = $msg[0];
        $ident      = $msg[1];
        $host       = $msg[2];
        $timestamp  = intval($msg[3], 10);
        $timestamp  = new \DateTime('@'.$timestamp);
        $text       = $msg[4];

        return $this->connection->dispatch(
            $this->makeEvent(
                $event,
                $nick,
                ($ident == '*' ? null : $ident),
                ($host == '*' ? null : $host),
                $timestamp,
                $text
            )
        );
    }
protected function watchList ( $ event , $ msg ) { // <bot> <nick> <ident> <host> <timestamp> :<msg> unset ( $ msg [ 0 ] ) ; $ nick = $ msg [ 0 ] ; $ ident = $ msg [ 1 ] ; $ host = $ msg [ 2 ] ; $ timestamp = intval ( $ msg [ 3 ] , 10 ) ; $ timestamp = new \ DateTime ( '@' . $ timestamp ) ; $ text = $ msg [ 4 ] ; return $ this -> connection -> dispatch ( $ this -> makeEvent ( $ event , $ nick , ( $ ident == '*' ? null : $ ident ) , ( $ host == '*' ? null : $ host ) , $ timestamp , $ text ) ) ; }
Processes a message related to the WATCH list.

\param string $event
Interface name for the event to produce.

\param Erebot::Interfaces::IrcTextWrapper $msg
The message to process, wrapped in
a special object that makes it easier
to analyze each token separately.
Processes a message related to the WATCH list .