SpliftOn

Protection de fou

Sep 28th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. ;§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§
  2. ;§§
  3. ;§§ Author: play4free2
  4. ;§§ Title: Protection.mrc
  5. ;§§ Date: 03-07-2014
  6. ;§§ Description: Kick, Ban, Deop, No SAJoin, and No SAPart
  7. ;§§ protection with on and off options
  8. ;§§
  9. ;§§ Instructions: Type Alt + r go to file new, Copy and paste this
  10. ;§§ into the window and Save As Protection.mrc
  11. ;§§
  12. ;§§ Credits to Gekkie irc.420-hightimes.com for the original kick ban deop
  13. ;§§
  14. ;§§ DO NOT CHANGE ANYTHING IN THIS FILE
  15. ;§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§
  16. #banprot on
  17. on 1:BAN:#:{
  18. if ($banmask == $address($me,0)) || ($banmask == $address($me,1)) || ($banmask == $address($me,2)) || ($banmask == $address($me,3)) || ($banmask == $address($me,4)) || ($banmask == $address($me,5)) || ($banmask == $address($me,6)) || ($banmask == $address($me,7)) || ($banmask == $address($me,8)) || ($banmask == $address($me,9)) || ($banmask == $address($me,10)) || ($banmask == $address($me,11)) || ($banmask == $address($me,12)) || ($banmask == $address($me,13)) || ($banmask == $address($me,14)) { goto revenge } | else { goto end }
  19. :revenge
  20. .msg chanserv unban $chan $me
  21. .msg chanserv invite $chan $me
  22. mode $chan -b $banmask
  23. ban -u30 $chan $nick 2
  24. kick $chan $nick Ban Protection. Don't ban me!
  25. :end
  26. halt
  27. }
  28. #banprot end
  29.  
  30. #deopprot on
  31. on 1:DEOP:#:{
  32. if ($opnick == $me) { goto revenge } | else { goto end }
  33. :revenge
  34. .msg chanserv op $chan $me
  35. .timer 1 2 mode $chan -o $nick
  36. .timer 1 3 kick $chan $nick Deop Protection. Don't Deop me!
  37. :end
  38. halt
  39. }
  40. #deopprot end
  41.  
  42. #kickprot on
  43. on 1:KICK:#:{
  44. set %kchan $chan
  45. set %kicker $nick
  46. if ($knick == $me) { goto revenge } | else { goto end }
  47. :revenge
  48. .msg chanserv invite $chan $me
  49. .timer 1 3 join %kchan
  50. .timer 1 4 mode %kchan -o %kicker
  51. .timer 1 5 ban -u30 $chan $nick 2
  52. .timer 1 6 kick %kchan %kicker Kick Protection. Don't Kick me!
  53. :end
  54. unset %kchan
  55. halt
  56. }
  57. on 1:OP:#:{
  58. if ($opnick == $me) && (%kicker ison $chan) { goto revenge2 } | else { goto end2 }
  59. :revenge2
  60. kick $chan %kicker Kick Protection. Don't Kick me!
  61. :end2
  62. unset %kicker
  63. halt
  64. }
  65. #kickprot end
  66.  
  67. #sajoin on
  68. on 1:SNOTICE:*You were forced to join*: {
  69. .timer 1 2 msg $7 4SAJoin me? Not this time bye bye :P
  70. .timer 1 3 part $7
  71. halt
  72. }
  73. #sajoin end
  74.  
  75. #sapart on
  76. on 1:SNOTICE:*You were forced to part*: {
  77. .timer 1 3 join $7
  78. .timer 1 4 msg $7 4SAPart me? I don't think so :P
  79. halt
  80. }
  81. #sapart end
  82.  
  83. menu menubar,status {
  84. .-
  85. .Protection
  86. .$iif(%banprot,$style(1)) Ban $iif(%banprot,On,Off) {
  87. if (%banprot) { unset %banprot | .disable #banprot }
  88. else { set %banprot on | .enable #banprot }
  89. }
  90. .-
  91. .$iif(%kickprot,$style(1)) Kick $iif(%kickprot,On,Off) {
  92. if (%kickprot) { unset %kickprot | .disable #kickprot }
  93. else { set %kickprot on | .enable #kickprot }
  94. }
  95. .-
  96. .$iif(%deopprot,$style(1)) DeOp $iif(%deopprot,On,Off) {
  97. if (%deopprot) { unset %deopprot | .disable #deopprot }
  98. else { set %deopprot on | .enable #deopprot }
  99. }
  100. .-
  101. .$iif(%sajoin,$style(1)) SAJoin $iif(%sajoin,On,Off) {
  102. if (%sajoin) { unset %sajoin | .disable #sajoin }
  103. else { set %sajoin on | .enable #sajoin }
  104. }
  105. .-
  106. .$iif(%sapart,$style(1)) SAPart $iif(%sapart,On,Off) {
  107. if (%sapart) { unset %sajoin | .disable #sapart }
  108. else { set %sapart on | .enable #sapart }
  109. }
  110. .-
  111. }
Add Comment
Please, Sign In to add comment