Changeset 989
- Timestamp:
- 02/10/09 15:33:28 (3 years ago)
- File:
-
- 1 edited
-
trunk/plugins/en/complex_spoonerism.tcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/complex_spoonerism.tcl
r981 r989 27 27 if {[regexp -nocase {^([^%/aeiou. ]+)([aeiuo][a-z]+) ([a-z]+ )?([^aeiou. ]*)([aeiuo][a-z]+)$} $text matches 1 2 3 4 5 6 7]} { 28 28 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 } 30 34 return 1 31 35 } … … 57 61 } 58 62 63 if [regexp -nocase "(one)" $two] { 64 return 0 65 } 66 59 67 if {[string range $two end end] == "s"} { 60 68 append one "s" … … 69 77 bMotion_abstract_register "spoonerisms" 70 78 bMotion_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 80 bMotion_abstract_register "xhery_male" [list "I'd %% her %2"] 81 bMotion_abstract_register "xhery_female" [list "I'd %% his %2"] 82 83 # We need this blank one for the two above to work 84 bMotion_abstract_register "xhery"
Note: See TracChangeset
for help on using the changeset viewer.
