Changeset 1051 for trunk


Ignore:
Timestamp:
11/10/09 18:08:14 (3 years ago)
Author:
james
Message:

fix broken abstracts
fix %% expanding to contain other macros

Location:
trunk/modules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/abstract.tcl

    r1041 r1051  
    172172} 
    173173 
    174 proc bMotion_abstract_load { abstract } { 
    175         bMotion_putloglev 5 * "bMotion_abstract_load ($abstract)" 
    176   global bMotion_abstract_contents bMotion_abstract_timestamps 
     174proc bMotion_abstract_load { abstract } {  
     175        bMotion_putloglev 5 * "bMotion_abstract_load ($abstract)"  
     176         
     177        global bMotion_abstract_contents bMotion_abstract_timestamps 
    177178  global bMotionModules bMotion_abstract_ondisk 
    178179  global bMotion_loading bMotion_testing 
     
    646647        catch { 
    647648                set filter $bMotion_abstract_filter(_all) 
     649                bMotion_putloglev d * "abstract: found an _all filter, applying to $abstract" 
    648650                bMotion_abstract_filter $abstract $filter 
    649651        } 
  • trunk/modules/abstracts/en/abstracts.tcl

    r1038 r1051  
    10361036        "%REPEAT{3:7:m} %%" 
    10371037        "helle%REPEAT{4:8:w}" 
     1038        "%ruser!%|*%VAR{sillyVerbs}* %VAR{smiles}" 
     1039        "%ruser!%|/%VAR{sillyVerbs:present}" 
    10381040} 
    10391041 
     
    54805482bMotion_abstract_add_filter "theRs" "sads" 
    54815483 
     5484bMotion_abstract_add_filter "_all" "\{strip\}\}" 
     5485bMotion_abstract_add_filter "_all" "\}\{strip\}" 
     5486 
    54825487source "$bMotionModules/abstracts/en/randomstuff.tcl" 
    54835488 
  • trunk/modules/output.tcl

    r1042 r1051  
    241241        # Process macros 
    242242 
    243         set text [bMotion_process_macros $channel $text] 
    244  
    245         # Run the plugins :D 
    246  
    247         # First run the core plugins 
    248         #set plugins [bMotion_plugin_find_output $bMotionInfo(language) $channel 0 10] 
    249         #if {[llength $plugins] > 0} { 
    250         #       foreach callback $plugins { 
    251         #               bMotion_putloglev 1 * "bMotion: output plugin: $callback..." 
    252         #               set result "" 
    253         #               catch { 
    254         #                       set result [$callback $channel $text] 
    255         #               } err 
    256         #               bMotion_putloglev 3 * "bMotion: returned from output $callback ($result)" 
    257         #               # TODO: Still used? 
    258         #               if {$result == ""} { 
    259         #                       return 0 
    260         #               } 
    261         #               set text $result 
    262         #       } 
    263         #} 
    264  
    265         set text [bMotionDoInterpolation $text $nick $moreText $channel] 
     243        set original_line $text 
     244        set done 0 
     245        while {$done == 0} { 
     246                set text [bMotion_process_macros $channel $text] 
     247 
     248                set text [bMotionDoInterpolation $text $nick $moreText $channel] 
     249 
     250                if {$text == $original_line} { 
     251                        set done 1 
     252                } else { 
     253                        set original_line $text 
     254                        bMotion_putloglev d * "output: going round macro loop again" 
     255                } 
     256        } 
    266257 
    267258        # now the rest 
Note: See TracChangeset for help on using the changeset viewer.