Changeset 1117
- Timestamp:
- 08/25/11 05:31:38 (9 months ago)
- File:
-
- 1 edited
-
trunk/plugins/en/complex_fry.tcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/complex_fry.tcl
r1094 r1117 13 13 ############################################################################### 14 14 15 bMotion_plugin_add_complex "fry1" "i'?ve been as (dumb|stupid) as $botnicks" 100 bMotion_plugin_complex_fry1 "en"15 bMotion_plugin_add_complex "fry1" "i'?ve been as (dumb|stupid) as %botnicks" 100 bMotion_plugin_complex_fry1 "en" 16 16 bMotion_plugin_add_complex "technically" "technically \[a-z\]+\\M" 60 bMotion_plugin_complex_technically "en" 17 17 … … 21 21 } 22 22 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" 25 25 set response "The best kind of $thing" 26 if {$ b == "not a"} {26 if {$a == "not "} { 27 27 set response "%VAR{technically_worst}" 28 28 } 29 bMotionDoAction $channel $ d$response29 bMotionDoAction $channel $thing $response 30 30 return 1 31 31 } … … 34 34 proc bMotion_plugin_complex_fry1 {nick host handle channel text} { 35 35 36 bMotionDoAction $channel "" "am not % VAR{unsmiles}"36 bMotionDoAction $channel "" "am not %SMILEY{sad}" 37 37 38 38 return 1
Note: See TracChangeset
for help on using the changeset viewer.
