Changeset 1082 for trunk/plugins/en/complex_nazi.tcl
- Timestamp:
- 08/26/10 11:32:47 (21 months ago)
- File:
-
- 1 edited
-
trunk/plugins/en/complex_nazi.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/complex_nazi.tcl
r979 r1082 14 14 15 15 bMotion_plugin_add_complex "nazi-your" "^your (a|the) \[a-z\]+$" 60 bMotion_plugin_complex_nazi1 "en" 16 bMotion_plugin_add_complex "nazi-regexp" "^s/\[^/\]+/\[^/\]+$" 80 bMotion_plugin_complex_nazi2 "en" 16 bMotion_plugin_add_complex "nazi-regexp" "^s/\[^/\]+/\[^/\]+$" 30 bMotion_plugin_complex_nazi2 "en" 17 bMotion_plugin_add_complex "nazi-meand" "\\mme and \[a-z\]+" 60 bMotion_plugin_complex_nazi3 "en" 18 bMotion_plugin_add_complex "nazi-meand2" "\[a-z\]+ and me\\M" 60 bMotion_plugin_complex_nazi4 "en" 17 19 18 20 proc bMotion_plugin_complex_nazi1 {nick host handle channel text} { … … 39 41 } 40 42 43 proc bMotion_plugin_complex_nazi3 {nick host handle channel text} { 44 45 if [regexp -nocase "\\mme and (\[a-z\]+)( \[a-z\]+)?" $text matches other verb] { 46 if {$verb == ""} { 47 if {![bMotion_interbot_me_next $channel]} { 48 return 0 49 } 50 bMotionDoAction $channel $nick "%%: %2 and me" $other 51 return 1 52 } else { 53 regsub -nocase "me and $other" $text "$other and me" text 54 return [bMotion_plugin_complex_nazi4 $nick $host $handle $channel $text] 55 } 56 return 0 57 } 58 } 59 60 proc bMotion_plugin_complex_nazi4 {nick host handle channel text} { 61 if {![bMotion_interbot_me_next $channel]} { 62 return 0 63 } 64 65 #TODO: extend this list 66 if [regexp -nocase "\\m(\[a-z\]+ and \)me\\M (were|did)\\M" $text matches other verb] { 67 bMotionDoAction $channel $nick "%%: $other I" 68 return 1 69 } 70 return 0 71 } 72 73 41 74 bMotion_abstract_register "nazi1" 42 75 bMotion_abstract_batchadd "nazi1" [list "%%: \"you're\"" "their what?" "s/your/you're/"]
Note: See TracChangeset
for help on using the changeset viewer.
