Ignore:
Timestamp:
06/19/09 16:28:12 (3 years ago)
Author:
james
Message:

how do i committed changes

File:
1 edited

Legend:

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

    r961 r1010  
    1515bMotion_plugin_add_action_complex "zzz-failsafe" {^(.+?)s?( at|with)? %botnicks} 100 bMotion_plugin_complex_action_failsafe "en" 
    1616bMotion_plugin_add_action_complex "aaa-autogender" {[a-z]+s (his|her) } 100 bMotion_plugin_complex_action_autolearn_gender "en" 
     17bMotion_plugin_add_action_complex "aaa-verbcatch" {(\w+s)\M} 100 bMotion_plugin_complex_action_verb_catch "en" 
    1718 
    1819proc bMotion_plugin_complex_action_failsafe { nick host handle channel text } { 
     
    108109} 
    109110 
     111proc bMotion_plugin_complex_action_verb_catch { nick host handle channel text } { 
     112 
     113        set stem "" 
     114        if [regexp -nocase {^((\w+)s)\M} $text matches verb stem] { 
     115        } 
     116 
     117        if {$stem != ""} { 
     118                if [string match -nocase "*e" $stem] { 
     119                        set stem [string range $stem 0 end-1] 
     120                } 
     121                # TODO: Handle any obvious cases where the stem isn't just lopping off the s! 
     122                bMotion_putloglev 1 * "found verb $verb ($stem)" 
     123                bMotion_abstract_add "sillyVerbs" $stem 
     124        } 
     125 
     126        return 0 
     127} 
     128 
    110129bMotion_abstract_register "failsafe_nice" 
    111130bMotion_abstract_batchadd "failsafe_nice" [list "mmm" "%VAR{smiles}" "%VAR{smiles}%|/gives %% %VAR{sillyThings}" "i do love a good %2ing"] 
     
    134153bMotion_abstract_batchadd "failsafe_niceactions" [list "wh%REPEAT{3:7:e} %VAR{smiles}" "%VAR{smiles}" "/bounces around" "*drool*" ] 
    135154 
    136  
     155bMotion_abstract_register "sillyVerbs" 
Note: See TracChangeset for help on using the changeset viewer.