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_VERB.tcl

    r961 r1019  
    1 # 
    2 # 
    31# vim: fdm=indent fdn=1 
    42# 
     
    1816proc bMotion_plugin_output_VERB { channel line } { 
    1917 
    20         set previous_line "" 
    21  
    22         while {[regexp -nocase "%VERB\{(.*?)\}" $line matches BOOM]} { 
     18        if {[regexp -nocase "%VERB\{(.*?)\}" $line matches BOOM]} { 
    2319                regsub -nocase "%VERB\{$BOOM\}" $line [bMotionMakeVerb $BOOM] line 
    24                 if {$line == $previous_line} { 
    25                         putlog "bMotion: ALERT! looping too much in %VERB code with $line (no change since last parse)" 
    26                         set line "" 
    27                         break 
    28                 } 
    29                 set previous_line $line 
    3020        } 
    3121 
Note: See TracChangeset for help on using the changeset viewer.