Changeset 1124


Ignore:
Timestamp:
12/15/11 11:10:41 (5 months ago)
Author:
james
Message:

prevent homophone plugin from nuking output

File:
1 edited

Legend:

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

    r1120 r1124  
    2020# 
    2121proc bMotion_plugin_output_homophone { channel line } { 
    22   global bMotionSettings 
    23  
    24   set homophone_rate $bMotionSettings(homophone) 
     22  set homophone_rate [bMotion_setting_get "homophone"] 
    2523  set oldLine $line 
    2624 
     
    7371    append newLine "$word " 
    7472  } 
     73        set newLine [string trim $newLine] 
     74        if {$newLine == ""} { 
     75                return $oldLine 
     76        } 
    7577  set line $newLine 
    7678 
Note: See TracChangeset for help on using the changeset viewer.