mIRC Homepage
Posted By: whatsthedillio help with spam script - 03/07/04 04:49 PM
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
Posted By: state Re: help with spam script - 03/07/04 05:53 PM
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
Posted By: whatsthedillio Re: help with spam script - 03/07/04 08:32 PM
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
Posted By: Kelder Re: help with spam script - 03/07/04 10:28 PM
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...
© mIRC Discussion Forums