Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. on @*:text:*:#:linkpost $1-
  2. on @*:action:*:#:linkpost $1-
  3. on @*:notice:*:#:linkpost $1-
  4. alias -l linkpost {
  5. if ((!%p) && (!$hfind(permit,$nick))) { inc -u4 %p
  6. var %purge /^!(link\so(n|ff)|(permit))\b/iS
  7. var %domain com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk
  8. var %exception /(?:https?:\/\/)?w{3}\.(imgur)\.com/
  9. var %link /(?<=^|\s)((?>\S{3,8}:\/\/|w{3}\56)\S+)|\56( $+ %domain $+ )\b/iS
  10. if ($findtok(%chanon1,#,1,32)) && ($nick(#,$nick,vr)) && ($regex($1-,%link)) && (!$regex($1-,%exception)) {
  11. timeout 30 # $nick | /mode # -b $nick
  12. msg # $nick You did not have permission to post a link ask a mod to !permit you
  13. msg # /timeout $nick 1
  14. }
  15. elseif (($regex($1-,%purge)) && ($regml(1) = permit) && ($nick isop #) && ($$2 ison #)) {
  16. hadd -mz permit $v1 30 | notice $v1 You have 30 seconds to post a link. Starting now!
  17. msg # You now have 30 seconds to post a link!
  18. }
  19. elseif (($regml(1) = link on) && ($nick isop #)) {
  20. goto $iif(!$istok(%chanon1,#,32),a,b) | :a | set %chanon1 $addtok(%chanon,#,32)
  21. .msg # Link Protection Is Now on in: $+($chr(2),#)
  22. halt | :b | .msg # $nick $+ , my link protection is already on in $&
  23. $+($chr(2),#,$chr(2)) !
  24. }
  25. elseif (($regml(1) = link off) && ($nick isop #)) {
  26. goto $iif($istok(%chanon1,#,32),c,d) | :c | set %chanon1 $remtok(%chanon,#,1,32)
  27. .msg # Link Protection Is Now off in: $+($chr(2),#)
  28. halt | :d | .msg # $nick $+ , My link protection is already off . $&
  29. !
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement