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

fix broken abstracts
fix %% expanding to contain other macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.