michealkenny commented on a Page, spam protection (bot)  -  Jul 31, 2010

hi, this is awesome!, but I would like it if it did nothing but remove the url and kick on the second time unless your an op or half-op, then it doesn't remove the url or kick or warn, I would like for this to work on the ustream irc network and i think the script for removing posts on ustream is

notice # REMOVE $nick $1-

thank you so much if you know how to do it!

this is the script with the removing code in it and it works, but i dont want it to ban users, I just want it to kick them on the second time they post a link and i dont want it to do anything if your an op or half op

on *:TEXT:*:#: { 
  if ($nick isop $chan) || ($nick ishop $chan) {
    if (!sp == $strip($1)) { 
      if (!$2) { eis | .msg $chan ?spam command: ?spam on/off/status }
      if ($regex($strip($1-),/on|off/i)) { set $+(%,sp,$chan) $2 | .msg $chan Spam Protect is now $($+(%,sp,$chan),2) $+ . }
      if ($strip($2) == status) { .msg $chan Spam Protect is currently $($+(%,sp,$chan),2) }
  } }
  if ($regex($strip($1-),/\b(?:http|www|com|org|net)\b/i)) && ($($+(%,sp,$chan),2) == on) { 
    if ($+(%,spam,$nick) == $null) { set $+(%,spam,$nick) 1 }
    else { inc $+(%,spam,$nick) 1 }
    if ($($+(%,spam,$nick),2) == 3) { unset $+(%,spam,$nick) | ban -k $chan $nick 2 Spam/Advertising. | .notice $nick You have been banned from $chan for Spam/Advertising. }
    .msg $chan $nick - Spamming is not allowed in this channel.
    notice # REMOVE $nick $1-
} } 

thanks in advance

 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.