Changeset 1117


Ignore:
Timestamp:
08/25/11 05:31:38 (9 months ago)
Author:
james
Message:

fix broken regexpness for technically-correct

File:
1 edited

Legend:

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

    r1094 r1117  
    1313############################################################################### 
    1414 
    15 bMotion_plugin_add_complex "fry1" "i'?ve been as (dumb|stupid) as $botnicks" 100 bMotion_plugin_complex_fry1 "en" 
     15bMotion_plugin_add_complex "fry1" "i'?ve been as (dumb|stupid) as %botnicks" 100 bMotion_plugin_complex_fry1 "en" 
    1616bMotion_plugin_add_complex "technically" "technically \[a-z\]+\\M" 60 bMotion_plugin_complex_technically "en" 
    1717 
     
    2121        } 
    2222 
    23         if [regexp -nocase "technically ((not (a )?)?(\[a-z\]+))\\M" $text matches thing b c d] { 
    24                 putlog "a=$thing, b=$b, c=$c, d=$d" 
     23        if [regexp -nocase "technically (not )?(an? )?(\[a-z\]+)\\M" $text matches a b thing] { 
     24                putlog "thing=$thing, a=$a, b=$b" 
    2525                set response "The best kind of $thing" 
    26                 if {$b == "not a "} { 
     26                if {$a == "not "} { 
    2727                        set response "%VAR{technically_worst}" 
    2828                } 
    29                 bMotionDoAction $channel $d $response  
     29                bMotionDoAction $channel $thing $response  
    3030                return 1 
    3131        } 
     
    3434proc bMotion_plugin_complex_fry1 {nick host handle channel text} { 
    3535 
    36         bMotionDoAction $channel "" "am not %VAR{unsmiles}" 
     36        bMotionDoAction $channel "" "am not %SMILEY{sad}" 
    3737 
    3838  return 1 
Note: See TracChangeset for help on using the changeset viewer.