Ignore:
Timestamp:
08/23/09 19:22:05 (3 years ago)
Author:
james
Message:

New output parser for core plugins - should fix problems with late replacements getting missed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/en/output_TIME.tcl

    r961 r1019  
    1 # 
    2 # 
    31# vim: fdm=indent fdn=1 
    42# 
     
    64############################################################################### 
    75# This is a bMotion plugin 
    8 # Copyright (C) James Michael Seward 2000-2008 
     6# Copyright (C) James Michael Seward 2000-2009 
    97# 
    108# This program is covered by the GPL, please refer the to LICENCE file in the 
     
    1917        bMotion_putloglev 4 * "bMotion_plugin_output_TIME $channel $line" 
    2018 
    21         set lastline "" 
    22  
    23         while {[regexp "%TIME\{(\[a-zA-Z0-9 -\]+)\}" $line matches timeString]} { 
     19        if {[regexp "%TIME\{(\[a-zA-Z0-9 -\]+)\}" $line matches timeString]} { 
    2420                bMotion_putloglev 2 * "found timestring $timeString" 
    2521                set origtime $timeString 
     
    2925                bMotion_putloglev 2 * "using time $var" 
    3026                set line [bMotionInsertString $line "%TIME\\{$origtime\\}" $var] 
    31  
    32                 if {$lastline == $line} { 
    33                         # nothing changed 
    34                         set line "" 
    35                         break 
    36                 } 
    37                 set lastline $line 
    3827        } 
    3928 
Note: See TracChangeset for help on using the changeset viewer.