| View previous topic :: View next topic |
| Author |
Message |
b|_ack Voice
Joined: 10 Feb 2005 Posts: 6
|
Posted: Fri Feb 25, 2005 7:51 pm Post subject: spamdetect.tcl and advertisekick.tcl awyeah |
|
|
| If the spammer has op in (auto op channels)it doesnt makes him ban,can it be changed so if he has op it can ban him? thnx |
|
| Back to top |
|
 |
Ofloo Owner
Joined: 13 May 2003 Posts: 953 Location: Belguim
|
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sat Feb 26, 2005 5:33 am Post subject: |
|
|
look for [isop $nick $chan] and change them to [matchattr $hand of|of $chan] within the scripts. _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
Ofloo Owner
Joined: 13 May 2003 Posts: 953 Location: Belguim
|
Posted: Sat Feb 26, 2005 6:35 am Post subject: |
|
|
<snip> _________________ XplaiN but think of me as stupid |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Sat Feb 26, 2005 8:10 am Post subject: |
|
|
Yes that can be done. Try not to exempt ops or voices. I remember in both of these scripts I had added options if you want to exempt ops or voices, who advertise and who are spammers.
For ops:
if {[isop $nick $chan]} { return 0 }
For voices:
if {[isvoice $nick $chan]} { return 0 }
For ops and voices:
if {[isop $nick $chan] || [isvoice $nick $chan]} { return 0 }
You might have to change the variable names though. Like in the spam detection script they might not be the same, since the spam detection bot relays messages to the opped bot, it might be something like [lindex $text NUM] (NUM = list number) involved and sames goes for the channel variable. However the advertise script should be fine. _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
|