Changeset 918
- Timestamp:
- 04/06/2008 10:46:20 (4 months ago)
- Files:
-
- 1 modified
-
trunk/plugins/en/complex_spoonerism.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/complex_spoonerism.tcl
r878 r918 16 16 bMotion_plugin_add_complex "spoon" {^([^%/aeiou. ]+)([aeiuo][a-z]+) ([a-z]+ )?([^aeiou. ]*)([aeiuo][a-z]+)$} 1 bMotion_plugin_complex_spoon "en" 17 17 18 bMotion_plugin_add_complex "spoooooon" {^[b-df-hj-np-tv-xz]+[aeiou]{2}[b-df-hj-np-tv-xz]+[.!?]?$} 40 bMotion_plugin_complex_spoon2 "en" 19 18 20 proc bMotion_plugin_complex_spoon { nick host handle channel text } { 19 21 … … 30 32 } 31 33 34 proc bMotion_plugin_complex_spoon2 { nick host handle channel text } { 35 36 if (![bMotion_interbot_me_next $channel]) { 37 return 0 38 } 39 40 if [regexp -nocase {([b-df-hj-np-tv-xz]+)([aeiou]{2})([b-df-hj-np-tv-xz]+[.!?]?)} $text matches 1 2 3 4] { 41 bMotionDoAction $channel $text "$1%REPEAT{2:10:$2}$3$4" 42 return 1 43 } 44 } 45 46 32 47 bMotion_abstract_register "spoonerisms" 33 48 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)"]
