Changeset 281


Ignore:
Timestamp:
09/19/03 09:25:53 (8 years ago)
Author:
jamesoff
Message:

fixed to allow anyone to thank the bot at any time (flood control can handle the rest)

File:
1 edited

Legend:

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

    r2 r281  
    11## bMotion plugin: thanks 
    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-2002 
     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_complex "thanks" "^(thank(s|z|x)|thankyou|thank you|thx|thanx|ta|cheers|merki|merci) %botnicks" 100 bMotion_plugin_complex_thanks "en" 
    1630 
     31 
     32 
    1733proc bMotion_plugin_complex_thanks { nick host handle channel text } { 
     34 
    1835  global bMotionCache 
     36 
    1937  #need to have done something for this user recently 
    20   if {![regexp -nocase $nick $bMotionCache(lastDoneFor)]} {return 0} 
    21   set bMotionCache(lastDoneFor) "" 
     38 
     39  #if {![regexp -nocase $nick $bMotionCache(lastDoneFor)]} {return 0} 
     40 
     41  #set bMotionCache(lastDoneFor) "" 
     42 
     43 
    2244 
    2345  #bMotion_putloglev d * "bMotion: Thanked by $nick on $channel" 
    24   bMotionDoAction $channel $nick "%VAR{welcome}" 
     46 
     47  bMotionDoAction $channel $nick "%VAR{welcomes}" 
     48 
    2549  bMotionGetHappy 
     50 
    2651  driftFriendship $nick 3 
     52 
    2753  return 1 
     54 
    2855} 
Note: See TracChangeset for help on using the changeset viewer.