Link Protection

By Bacon_Space on May 19, 2014

Link Protection made by ???

on @*:text:*:#:linkpost $1-
on @*:action:*:#:linkpost $1-
on @*:notice:*:#:linkpost $1-
alias -l linkpost {
  if ((!%p) && (!$hfind(permit,$nick))) { inc -u4 %p
    var %purge /^!(link\so(n|ff)|(permit))\b/iS
    var %domain com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk|tv
    var %link /(?<=^|\s)((?>\S{3,8}:\/\/|w{3}\56)\S+)|\56( $+ %domain $+ )\b/iS
    if ($findtok(%chanon1,#,1,32)) && ($nick(#,$nick,vr)) && ($regex($1-,%link)) {
      { msg $chan  $nick $+ , Links Are Not Permitted Here! [Link] [Warning] }
      { msg # /timeout $nick 10 }
    }
    elseif (($regex($1-,%purge)) && ($regml(1) = permit) && ($nick isop #) && ($$2 ison #)) {
      hadd -mz permit $v1 30 | notice $v1 You have 30 seconds to post a link. Starting now!
      msg # /me $v1 You Now Have 30 Seconds To Post A Link!
    }
    elseif (($regml(1) = link on) && ($nick isop #)) {
      goto $iif(!$istok(%chanon1,#,32),a,b) | :a | set %chanon1 $addtok(%chanon,#,32)
      .msg # /me Link Protection Is turned on.
      halt | :b | .msg #  Link Protection Is Already Turned On.
    }
    elseif (($regml(1) = link off) && ($nick isop #)) {
      goto $iif($istok(%chanon1,#,32),c,d) | :c | set %chanon1 $remtok(%chanon,#,1,32)
      .msg # /me Link Protection Is turned off!  
      halt | :D | .msg # Link Protection Is Already Turned Off!
    }
  }
}

Comments

Sign in to comment.
rebel9   -  Jun 08, 2014

.

Bacon_Space  -  Jun 16, 2014

sry i didnt who owns it so i can give credit to

rebel9  -  Jun 23, 2014

Well if you don't know then don't say yourself, lol. I see you changed it to "???". No problem man just try not to take credit for others work. Your reputation goes to shit after you're caught. Never to be trusted again, lol. Anyways enjoy your time at hawkee m8. No worries.

Sign in to comment

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.