Ignore:
Timestamp:
09/25/03 04:21:00 (9 years ago)
Author:
jamesoff
Message:

added another verb

File:
1 edited

Legend:

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

    r300 r301  
    11## bMotion plugin: pinch 
    2 # 
    3 # $Id$ 
     2 
    43# 
    54 
     5# $Id$ 
     6 
     7# 
     8 
     9 
     10 
    611############################################################################### 
     12 
    713# This is a bMotion plugin 
     14 
    815# Copyright (C) James Michael Seward 2000-2003 
     16 
    917# 
     18 
    1019# This program is covered by the GPL, please refer the to LICENCE file in the 
     20 
    1121# distribution; further information can be found in the headers of the scripts 
     22 
    1223# in the modules directory. 
     24 
    1325############################################################################### 
     26 
     27 
    1428 
    1529bMotion_plugin_add_action_complex "pinch" "^(steals|pinches|theives|removes) %botnicks'?s .+" 100 bMotion_plugin_complex_action_pinch "en" 
    1630 
     31 
     32 
    1733proc bMotion_plugin_complex_action_pinch { nick host handle channel text } {   
     34 
    1835  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 
    2039    # TODO: check $object and $action (e.g. pinches arse) 
     40 
    2141    bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{stolens}" 
     42 
    2243    bMotionGetSad 
     44 
    2345    # TODO: switch to using plugin settings for this 
     46 
    2447    set bMotionCache(lastEvil) $nick 
     48 
    2549    driftFriendship $nick -1 
     50 
    2651    return 1 
     52 
    2753  } 
     54 
    2855} 
     56 
Note: See TracChangeset for help on using the changeset viewer.