Anti advertisment

By Chaz on Apr 08, 2005

Will warn user after advertisment eg: la la #channel lala
On 2nd advert it will kick ban user for 300 seconds
Will not warn/ban people who are voiced/opped.
PS: sets a variable by address to %spam.useraddress so you can't just change your nick :>
Also as far as i know this will not work with another on :text:: infront of it!

;1 warning, then ban anti advertisment script by Red-- on Quakenet/#Scripting
on *:text:*:#: {
  if (($wildtok($1-,#*,0,32)) && (%spam [ $+ . [ $+ [ $address($nick,0) ] ] ] != 1) && ($nick !isop $chan) && ($nick !isvoice $chan)) {
    set -u300 %spam [ $+ . [ $+ [ $address($nick,0) ] ] ] 1
    notice $nick Stop advertising! Warning #1 on #2 You will be kicked
  }
  elseif (($wildtok($1-,#*,0,32)) && (%spam [ $+ . [ $+ [ $address($nick,0) ] ] ] == 1) && ($nick !isop $chan) && ($nick !isvoice $chan)) {
    ban -ku300 $chan $nick 0 Banned for 300 seconds! You are not allowed to advertise in $chan $+ .
    unset %spam [ $+ . [ $+ [ $address($nick,0) ] ] ]
  }
  elseif (($wildtok($1-,www.*,0,32)) && (%spam [ $+ . [ $+ [ $address($nick,0) ] ] ] != 1) && ($nick !isop $chan) && ($nick !isvoice $chan)) {
    set -u300 %spam [ $+ . [ $+ [ $address($nick,0) ] ] ] 1
    notice $nick Stop advertising! Warning #1 on #2 You will be kicked
  }
  elseif (($wildtok($1-,www.*,0,32)) && (%spam [ $+ . [ $+ [ $address($nick,0) ] ] ] == 1) && ($nick !isop $chan) && ($nick !isvoice $chan)) {
    ban -ku300 $chan $nick 0 Banned for 300 seconds! You are not allowed to advertise in $chan $+ .
    unset %spam [ $+ . [ $+ [ $address($nick,0) ] ] ]
  }
  elseif (($wildtok($1-,*.net,0,32)) && (%spam [ $+ . [ $+ [ $address($nick,0) ] ] ] != 1) && ($nick !isop $chan) && ($nick !isvoice $chan)) {
    set -u300 %spam [ $+ . [ $+ [ $address($nick,0) ] ] ] 1
    notice $nick Stop advertising! Warning #1 on #2 You will be kicked
  }
  elseif (($wildtok($1-,*.net,0,32)) && (%spam [ $+ . [ $+ [ $address($nick,0) ] ] ] == 1) && ($nick !isop $chan) && ($nick !isvoice $chan)) {
    ban -ku300 $chan $nick 0 Banned for 300 seconds! You are not allowed to advertise in $chan $+ .
    unset %spam [ $+ . [ $+ [ $address($nick,0) ] ] ]
  }
  elseif (($wildtok($1-,*.com,0,32)) && (%spam [ $+ . [ $+ [ $address($nick,0) ] ] ] != 1) && ($nick !isop $chan) && ($nick !isvoice $chan)) {
    set -u300 %spam [ $+ . [ $+ [ $address($nick,0) ] ] ] 1
    notice $nick Stop advertising! Warning #1 on #2 You will be kicked
  }
  elseif (($wildtok($1-,*.com,0,32)) && (%spam [ $+ . [ $+ [ $address($nick,0) ] ] ] == 1) && ($nick !isop $chan) && ($nick !isvoice $chan)) {
    ban -ku300 $chan $nick 0 Banned for 300 seconds! You are not allowed to advertise in $chan $+ .
    unset %spam [ $+ . [ $+ [ $address($nick,0) ] ] ]
  }
}

Comments

Sign in to comment.
Chaz   -  Apr 08, 2005

Hehe well said mate.

 Respond  
xDaeMoN   -  Apr 08, 2005

Another thing, what if the person is saying the current channel? they will be warned & kicked too.

 Respond  
xDaeMoN   -  Apr 08, 2005

You could replace this part \"($nick !isop $chan) && ($nick !isvoice $chan)\" to \"($nick isreg $chan)\". Also \"$address($nick,0)\" to \"$wildsite\" which returns the same thing.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.