This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

tcl help

Old posts that have not been replied to for several years.
Locked
c
crazy-nic
Voice
Posts: 19
Joined: Wed Jul 02, 2003 12:44 am

tcl help

Post by crazy-nic »

i've got a problem on this anti-spam tcl script when i add a bind pubm - "*#*" banspam the bot will automatic ban anyone in the channel who ever type any text. same goes to bind pubm - "*www.*" banspam Can some help me?

### Anti-Spam v1.4
### by Progeny <progeny@azzurra.org>
### AzzurraNet - #EggHelp (TCL & Eggdrop)

set ver "1.4"

### Durata del ban (in minuti)
set btime 5
### Reason del kick
set bkick "Banned for $btime mins for spamming."
### Canali in cui non kickare per spam
set dontban "#egghelp #irchelp #element86"
### Canali o stringhe non ritenuti "spam"
set safestrings "#key"


#bind pubm - "*http://*" banspam
#bind pubm - "*www.*" banspam
bind pubm - "*visit*#*" banspam
bind pubm - "*join*#*" banspam

bind pub o|o !unban unban
set dontban [string tolower $dontban]

proc unban {nick uhost hand chan argv} {
if [killchanban $chan $argv]==0 {
putserv "NOTICE $nick :$argv isn't in my Spammer Ban List."
} else {
putserv "MODE $chan -b $argv"
}
}

proc banspam {nick uhost hand chan argv} {
global btime bkick dontban safestrings

set safe 0
set argv [string tolower $argv]
foreach safestring $safestrings {
if {[lsearch $argv [string tolower $safestring]]!=-1} {set safe 1}
}

if {[isop $nick $chan]==0 && [lsearch $dontban [string tolower $chan]]==-1 && $safe==0} {
set banlamer $uhost
set why "No Spam"
set creator "Anti-Spam"
newchanban $chan $uhost $creator $why $btime
putserv "MODE $chan +b *!$uhost"
putserv "KICK $chan $nick :$bkick"
dccbroadcast "Anti-Spam TCL: Banned $nick from $chan"
}

}

putlog "TCL Loaded: Anti-Spam $ver by Progeny"

---------------------
Taken in www.egghelp.org
c
crazy-nic
Voice
Posts: 19
Joined: Wed Jul 02, 2003 12:44 am

Post by crazy-nic »

I guess no one can help me... for this script but do anyone have any script to intro to me for spam protection???
Locked