mIRC Home    About    Download    Register    News    Help

Print Thread
help with spam script #89009 03/07/04 04:49 PM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline OP
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
i made this spam script but i need some help with the end of it because i want the script to ban them for 5 minutes on the first spam then permanently ban them the second time
on *:TEXT:*#*:#ddd:{
if (($nick isop $chan)) || (($nick ishop $chan)) || ((1 isin $1-)) || ((2 isin $1-)) || ((3 isin $1-)) || ((4 isin $1-)) || ((5 isin $1-)) || ((6 isin $1-)) || ((7 isin $1-)) || ((8 isin $1-)) || ((9 isin $1-)) HALT
ELSE /notice $nick No Spamming Next time ull get a permanent ban
//mode $chan +b $nick 5 minute Bam Spammer
//kick $chan $nick no spamming
//timer 1 300 /mode #ddd -b $nick } }

so please tell me how to make the second spam permantly ban i did try but nothing worked and if ya can tell me what i put to if # is on its own not kick them thankyou

Re: help with spam script #89010 03/07/04 05:53 PM
Joined: Jun 2004
Posts: 133
S
state Offline
Vogon poet
Offline
Vogon poet
S
Joined: Jun 2004
Posts: 133
im a dumb person but your ban is not giving a time. u r just removing it after 5 mins. so if u didnt remove it. it would have no time

Re: help with spam script #89011 03/07/04 08:32 PM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline OP
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
yea thats why its a five min ban but i dont need help with that please help me how can i tell if a nick spams twice then on the second ban permanant thanks

Re: help with spam script #89012 03/07/04 10:28 PM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
if ( [ [ $+(%,spammer.,$fulladdress) ] ] ) {
your permban here
kick him
maybe also unset $+(%,spammer.,$fulladdress)
}
else {
set $+(%,spammer.,$fulladdress) 1
tempban here
kick him
}

To start your chatting in a forgiving mood, you can use on *:START:unset %spammer.*
You can change $fulladdress for $nick or $address depending on what you want exactly.

Maybe $regex can be usefull to check for 'good' or 'bad' appearances of #, also watch out for # between spaces being replaced by the #channelname by mIRC, use $chr(35) in that case.

ps: I noticed that /ban has a -uN switch, that would save you from messing with timers...