Changeset 285


Ignore:
Timestamp:
09/19/03 11:50:23 (8 years ago)
Author:
jamesoff
Message:

more likely to notice

File:
1 edited

Legend:

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

    r2 r285  
    11## bMotion plugin: stupid bots 
    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 "stupid" "(stupid|idiot|imbecile|incompetent|loser|luser) bot" 100 bMotion_plugin_complex_stupid "en" 
    1630 
     31 
     32 
    1733proc bMotion_plugin_complex_stupid { nick host handle channel text } { 
     34 
    1835  global botnicks 
    19   if {[regexp -nocase "(stupid|idiot|imbecile|incompetent|loser|luser) bot" $text] && [regexp -nocase $botnicks $text]} { 
     36 
     37  if {[regexp -nocase "(stupid|idiot|imbecile|incompetent|loser|luser)( bot)?" $text] && [regexp -nocase $botnicks $text]} { 
     38 
    2039    bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{stupidReplies}" 
     40 
    2141    bMotionGetSad 
     42 
    2243    driftFriendship $nick -5 
     44 
    2345    return 0 
     46 
    2447  } 
     48 
    2549} 
Note: See TracChangeset for help on using the changeset viewer.