Changeset 301 for trunk/plugins/en/action_complex_pinch.tcl
- Timestamp:
- 09/25/03 04:21:00 (9 years ago)
- File:
-
- 1 edited
-
trunk/plugins/en/action_complex_pinch.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/action_complex_pinch.tcl
r300 r301 1 1 ## bMotion plugin: pinch 2 # 3 # $Id$ 2 4 3 # 5 4 5 # $Id$ 6 7 # 8 9 10 6 11 ############################################################################### 12 7 13 # This is a bMotion plugin 14 8 15 # Copyright (C) James Michael Seward 2000-2003 16 9 17 # 18 10 19 # This program is covered by the GPL, please refer the to LICENCE file in the 20 11 21 # distribution; further information can be found in the headers of the scripts 22 12 23 # in the modules directory. 24 13 25 ############################################################################### 26 27 14 28 15 29 bMotion_plugin_add_action_complex "pinch" "^(steals|pinches|theives|removes) %botnicks'?s .+" 100 bMotion_plugin_complex_action_pinch "en" 16 30 31 32 17 33 proc bMotion_plugin_complex_action_pinch { nick host handle channel text } { 34 18 35 global botnicks 19 if [regexp -nocase "(steals|pinches|theives|removes) ${botnicks}'?s (.+)" $text matches action object] { 36 37 if [regexp -nocase "(steals|pinches|theives|removes|takes) ${botnicks}'?s (.+)" $text matches action object] { 38 20 39 # TODO: check $object and $action (e.g. pinches arse) 40 21 41 bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{stolens}" 42 22 43 bMotionGetSad 44 23 45 # TODO: switch to using plugin settings for this 46 24 47 set bMotionCache(lastEvil) $nick 48 25 49 driftFriendship $nick -1 50 26 51 return 1 52 27 53 } 54 28 55 } 56
Note: See TracChangeset
for help on using the changeset viewer.
