Changeset 285
- Timestamp:
- 09/19/03 11:50:23 (8 years ago)
- File:
-
- 1 edited
-
trunk/plugins/en/complex_stupid.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/complex_stupid.tcl
r2 r285 1 1 ## bMotion plugin: stupid bots 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-2002 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_complex "stupid" "(stupid|idiot|imbecile|incompetent|loser|luser) bot" 100 bMotion_plugin_complex_stupid "en" 16 30 31 32 17 33 proc bMotion_plugin_complex_stupid { nick host handle channel text } { 34 18 35 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 20 39 bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{stupidReplies}" 40 21 41 bMotionGetSad 42 22 43 driftFriendship $nick -5 44 23 45 return 0 46 24 47 } 48 25 49 }
Note: See TracChangeset
for help on using the changeset viewer.
