TLに対してTLで反応

今度はTLに対してTL反応するための部分です。
まず

    function makeReplyTimelineTweets

の中にある

            //idなどを変換
            $status = $this->convertText($status, $tweet);
            //フッターを追加
            $status .= $this->_footer;

            //リプライ相手、リプライ元を付与
            $rep = array();

の次の行にある

            $rep["status"] = "@".$tweet["user"]["screen_name"]." ".$status;

の行をコメントアウトするなどしてから以下を追加します。

            switch(true){
                case stristr($status, "[[TLH]]"):
                    $status = str_replace("[[TLH]]","",$status);
                    $rep["status"] = $status;
                    $timeid = $tweet["id_str"];
                        $this->saveLog("latest_reply_tl",$timeid);
                break;
            //その他
                default:
                $rep["status"] = "@".$tweet["user"]["screen_name"]." ".$status;
            }