Changeset 1074 for trunk


Ignore:
Timestamp:
03/17/10 23:31:22 (2 years ago)
Author:
james
Message:

Clear the ruser_skip setting after processing output (to make sure)
Use ruser_skip when we're being shown something

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/output.tcl

    r1073 r1074  
    282282        } 
    283283 
     284        # clear this in case a plugin ended up not using it in an abstract 
     285        bMotion_plugins_settings_set "system" "ruser_skip" $channel "" 
     286 
    284287        #make sure the line wasn't set to blank by a plugin (may be trying to block output) 
    285288        set line [string trim $text] 
  • trunk/plugins/en/action_complex_shows.tcl

    r966 r1074  
    1717        if {[regexp -nocase "(shows) $botnicks (a|an|the|some|his|her|its)? ?(.+)" $text bling act bot preposition item]} { 
    1818          bMotion_putloglev d * "bMotion: Was shown !$preposition $item! by $nick in $channel" 
     19 
     20                bMotion_plugins_settings_set "system" "ruser_skip" $channel "" $nick 
    1921 
    2022      # the following code is HORRIBLE, but that's just because I can't figure out TCL 
     
    144146  "%REPEAT{3:6:o}h, %VAR{show_adjectives}!%|/steals %% and runs off%|ALL MINE NOW%colen%|/sells %% on ebay" 
    145147  "now that's %VAR{show_adjectives}" 
    146   "p%REPEAT{2:5:f}t.. wait until you see my %VAR{sillyThings}{strip}" 
     148  "p%REPEAT{2:5:f}t.. wait until you see my %VAR{sillyThings:strip}" 
    147149  "/takes a picture" 
    148   "/contemplates%|it'd be nicer if it had %PLURAL{%VAR{sillyThings}{strip}}" 
    149   "I prefer %OWNER{%ruser}" 
     150  "/contemplates%|it'd be nicer if it had %VAR{sillyThings:strip,plural}" 
     151  "I prefer %ruser{:owner}" 
    150152  "/admires %%" 
    151153  "/replaces %% with a cheap %VAR{colours} plastic copy%|bwaha%REPEAT{1:4:ha}" 
    152154} 
     155bMotion_abstract_add_filter "show_generic" "%PLURAL" 
     156bMotion_abstract_add_filter "show_generic" "%OWNER" 
     157 
Note: See TracChangeset for help on using the changeset viewer.