Changeset 1022


Ignore:
Timestamp:
08/24/09 06:26:27 (2 years ago)
Author:
james
Message:

Fix bug in new output parser: unknown abstracts caused infinite loop
Make abstract filters case-sensitive
Fix broken abstract which triggered above

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/abstract.tcl

    r944 r1022  
    564564        foreach element $contents { 
    565565                bMotion_putloglev 2 * "considering $element for filtering" 
    566                 if [regexp -nocase $filter_text $element] { 
     566                if [regexp $filter_text $element] { 
    567567                        bMotion_putloglev 1 * "abstract $abstract element $element matches filter, dropping" 
    568568                        continue 
  • trunk/modules/abstracts/en/abstracts.tcl

    r1018 r1022  
    44784478        "%VAR{captains_log_start}: %channel has arrived at Deep Space %NUMBER{9}." 
    44794479        "%VAR{captains_log_start}: I've summoned the ops to discuss Commander %ruser's theory that %VAR{sillyThings:strip,plural} are a lifeform. Doctor %ruser has attended reluctantly." 
    4480         "%VAR{captains_log_start}: after placing the modified %VAR{sillythings:strip} on the Romulan ship, we have returned to %channel." 
     4480        "%VAR{captains_log_start}: after placing the modified %VAR{sillyThings:strip} on the Romulan ship, we have returned to %channel." 
    44814481        "%VAR{captains_log_start}: We are approching %VAR{irc_networks}, where many Bajorans have resettled." 
    44824482        "%VAR{captains_log_start}: temporary repairs have been completed. Our attention now turns to matters of a more festive nature." 
    44834483        "%VAR{captains_log_start}: %channel is charting six IRC servers that make up %VAR{irc_networks}, an area being considered for colonisation." 
    44844484} 
     4485bMotion_abstract_add_filter "captains_log_sensible" "sillythings" 
    44854486 
    44864487bMotion_abstract_register "captains_log_silly" { 
  • trunk/modules/output.tcl

    r1021 r1022  
    203203                                        } 
    204204                                        if {$result == ""} { 
     205                                                incr current_pos 
    205206                                                continue 
    206207                                        } 
  • trunk/plugins/en/output_VAR.tcl

    r1019 r1022  
    4343                        }] {  
    4444                                bMotion_putloglev d * "Unable to handle %VAR{$abstract}" 
    45                                 set line "" 
    46                                 break 
     45                                return "" 
    4746                        } 
    4847                } else { 
Note: See TracChangeset for help on using the changeset viewer.