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_SETTING.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_SETTING $channel $line" 
    2018 
    21         set lastline "" 
    22  
    23         while {[regexp "%SETTING\{(.+?)\}" $line matches settingString]} { 
     19        if {[regexp "%SETTING\{(.+?)\}" $line matches settingString]} { 
    2420                set var "" 
    2521                if [regexp {([^:]+:[^:]+):([^:]+):([^:]+):([^:]+)} $settingString matches plugin setting ch ni] { 
     
    3127                } 
    3228                set line [bMotionInsertString $line "%SETTING{$settingString}" $var] 
    33  
    34                 if {$lastline == $line} { 
    35                         putlog "bMotion: ALERT: couldn't parse $line for %SETTING (dropping output)"     
    36                         set line "" 
    37                         break 
    38                 } 
    3929        } 
    4030 
Note: See TracChangeset for help on using the changeset viewer.