Changeset 918

Show
Ignore:
Timestamp:
04/06/2008 10:46:20 (4 months ago)
Author:
james
Message:

new plugin

Files:
1 modified

Legend:

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

    r878 r918  
    1616bMotion_plugin_add_complex "spoon" {^([^%/aeiou. ]+)([aeiuo][a-z]+) ([a-z]+ )?([^aeiou. ]*)([aeiuo][a-z]+)$} 1 bMotion_plugin_complex_spoon "en" 
    1717 
     18bMotion_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 
    1820proc bMotion_plugin_complex_spoon { nick host handle channel text } { 
    1921 
     
    3032} 
    3133 
     34proc 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 
    3247bMotion_abstract_register "spoonerisms" 
    3348bMotion_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)"]