Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. on *:TEXT:*:#:{
  2. if ($me != [Trauma]) { halt }
  3. if ($nick isop #) {
  4. if ($regex($1,/^[!@.]inv(ite)?$/)) {
  5. invite $2 #
  6. }
  7. if ($regex($1,/^[+-].*/)) {
  8. if ($regex($1,/^([+-][mi]+)+/)) {
  9. mode # $1
  10. }
  11. if ($regex($1,/^([+-][qaohv]+)+/)) {
  12. mode # $1 $2-
  13. }
  14. var %regex = /^([+-][beI]+)+/i
  15. if ($regex($1,%regex)) {
  16. who #
  17. var %B $count($1,b,e,I) + 1
  18. var %X 2
  19. while (%X <= %B) {
  20. var %Ban = %Ban $address($ [ $+ [ %X ] ],2)
  21. inc %X
  22. }
  23. mode # $1 %Ban
  24. }
  25. }
  26. if ($regex($1,/^[!@.]hltag$/)) {
  27. msg # $tit(hltag) $c1($regsubex($str(.,$fline($chan,*[Z]*,N,1)), /./g, $fline($chan, *[Z]*,\n,1).text $+ $chr(32)))
  28. }
  29. if ($1 == $+($me,$chr(44))) {
  30. if (($!ip isin $2-) || (-x isin $2-)) {
  31. halt
  32. }
  33. elseif ($2 == say) {
  34. msg # $3-
  35. }
  36. else {
  37. scon -r $2-
  38. }
  39. }
  40. if ($regex($1,/[!@.]set(web)?(site|forum(s|z)?)$/Si)) {
  41. writeini $qt($+($mircdir,Clanname\Settings.ini)) Site site $2-
  42. msg # $tit(Site) $c1(The site has been set! Type) $c2(!site) $c1(to see it.)
  43. }
  44. if ($regex($1,/[!@.]setreq(uirement)?(s|z)?$/Si)) {
  45. writeini $qt($+($mircdir,Clanname\Settings.ini)) Reqs reqs $2-
  46. msg # $tit(Reqs) $c1(The requirements have been set! Type) $c2(!reqs) $c1(to see them.)
  47. }
  48. if ($regex($1,/[!@.]setc(lan)?c(hat)?$/Si)) {
  49. writeini $qt($+($mircdir,Clanname\Settings.ini)) Cc cc $2-
  50. msg # $tit(Clanchat) $c1(The clan chat has been set! Type) $c2(!cc) $c1(to see it.)
  51. }
  52. }
  53. if ($regex($1,/[!@.](web)?(site|forum(s|z)?)$/Si)) {
  54. $iif(@ isin $1,msg #,notice $nick) $tit(Site) $c1(The site for) $c2(Clanname) $c1(is) $c2($readini($qt($+($mircdir,Clanname\Settings.ini)),Site,site))
  55. }
  56. if ($regex($1,/[!@.]req(uirement)?(s|z)?$/Si)) {
  57. $iif(@ isin $1,msg #,notice $nick) $tit(Reqs) $c1(The requirements for) $c2(Clanname) $c1(are) $c2($readini($qt($+($mircdir,Clanname\Settings.ini)),Reqs,reqs))
  58. }
  59. if ($regex($1,/[!@.]c(lan)?c(hat)?$/Si)) {
  60. $iif(@ isin $1,msg #,notice $nick) $tit(Clanchat) $c1(The clan chat for) $c2(Clanname) $c1(is) $c2($readini($qt($+($mircdir,Clanname\Settings.ini)),Cc,cc))
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement