Changeset 989


Ignore:
Timestamp:
02/10/09 15:33:28 (3 years ago)
Author:
james
Message:

no idea!

File:
1 edited

Legend:

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

    r981 r989  
    2727        if {[regexp -nocase {^([^%/aeiou. ]+)([aeiuo][a-z]+) ([a-z]+ )?([^aeiou. ]*)([aeiuo][a-z]+)$} $text matches 1 2 3 4 5 6 7]} { 
    2828                if {![string equal -nocase "$4$2 $3$1$5" $text]} { 
    29                         bMotionDoAction $channel $text "%VAR{spoonerisms}" "$4$2 $3$1$5" 
     29                        if [rand 1] { 
     30                                bMotionDoAction $channel $text "%VAR{spoonerisms}" "$4$2 $3$1$5" 
     31                        } else { 
     32                                bMotionDoAction $channel "$1$2" "%VAR{xhery}" "$4$5" 
     33                        } 
    3034                        return 1 
    3135                } 
     
    5761                } 
    5862 
     63                if [regexp -nocase "(one)" $two] { 
     64                        return 0 
     65                } 
     66 
    5967                if {[string range $two end end] == "s"} { 
    6068                        append one "s" 
     
    6977bMotion_abstract_register "spoonerisms" 
    7078bMotion_abstract_batchadd "spoonerisms" [list "%% ... more like %2, am i rite?" "%% ... more like %2, am i right?" "%%? More like %2, am I correct?" "/. o O (%2)"] 
     79 
     80bMotion_abstract_register "xhery_male" [list "I'd %% her %2"] 
     81bMotion_abstract_register "xhery_female" [list "I'd %% his %2"] 
     82 
     83# We need this blank one for the two above to work 
     84bMotion_abstract_register "xhery" 
Note: See TracChangeset for help on using the changeset viewer.