Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1.  
  2. ON @*:TEXT:*:#: {
  3. IF ($nick isop #) { RETURN }
  4. SET -u3 %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] $calc( %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] + 1)
  5. ; The variable, %fld.#chan.nick counts the number of lines the person speaks
  6. ; It is automatically unset 3 seconds after the last time the person talked
  7. ; So I guess in _theory_ if you managed to do 1 line per 3 secs for 3 lines you could be kicked
  8. IF (%fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] >= 5) {
  9. ; The above if statement checks if that variable is greater to or equals 5
  10. gline $nick Please do not flood
  11. }
  12. }
  13. ON @*:TEXT:*:#: {
  14. ; Defines on text so it triggers only if you're operator on the target channel
  15. IF ($nick !isop #) {
  16. ; Tells mIRC to go on if the nick isn't an operator
  17. IF (%r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == $null) {
  18. ; Checks if $nick has a prior record...
  19. ; If $nick is clean, this creates user records for the nick...
  20. SET -u60 %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] 1
  21. ; mIRC creates a variable according to the nick and channel for 60 secs
  22. ; This stores the amount the nick has repeated within 60 seconds...
  23. SET -u60 %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ] $1-
  24. ; This stores the users text, used to check future text for matches...
  25. ; Replace 60 to adjust listening duration, 60 seconds = 1 minute
  26. ; mIRC resets stats after 60 seconds according to current settings
  27. RETURN
  28. }
  29. VAR %rps = %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
  30. ; %rps now represents how many times the user repeated...
  31. VAR %rpt = %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
  32. ; %rpt represents the users previous text...
  33. IF (%rpt == $1-) {
  34. ; Checks if the current text matches previous text...
  35. ; If they match, the user repeated...
  36. INC %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
  37. ; Since the user repeated, we increase his/her stats by 1
  38. IF (%rps > 2) {
  39. ; Checks if the user repeats more than twice
  40. ; Replace 2 with your limits
  41. ; Current settings kick/ban after 3 or more repeats...
  42. GLINE $nick You repeated %rps times, slow down!
  43. ; User repeated more than twice and is kick/banned...
  44. }
  45. }
  46. }
  47. }
  48.  
  49. ON @*:NOTICE:*:#: {
  50. IF ($nick isop #) { RETURN }
  51. SET -u3 %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] $calc( %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] + 1)
  52. IF (%fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] >= 5) {
  53. ; The above if statement checks if that variable is greater to or equals 5
  54. gline $nick Please do not flood
  55. }
  56. }
  57. ON @*:NOTICE:*:#: {
  58. ; Defines on text so it triggers only if you're operator on the target channel
  59. IF ($nick !isop #) {
  60. ; Tells mIRC to go on if the nick isn't an operator
  61. IF (%r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == $null) {
  62. ; Checks if $nick has a prior record...
  63. ; If $nick is clean, this creates user records for the nick...
  64. SET -u60 %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] 1
  65. ; mIRC creates a variable according to the nick and channel for 60 secs
  66. ; This stores the amount the nick has repeated within 60 seconds...
  67. SET -u60 %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ] $1-
  68. ; This stores the users text, used to check future text for matches...
  69. ; Replace 60 to adjust listening duration, 60 seconds = 1 minute
  70. ; mIRC resets stats after 60 seconds according to current settings
  71. RETURN
  72. }
  73. VAR %rps = %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
  74. ; %rps now represents how many times the user repeated...
  75. VAR %rpt = %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
  76. ; %rpt represents the users previous text...
  77. IF (%rpt == $1-) {
  78. ; Checks if the current text matches previous text...
  79. ; If they match, the user repeated...
  80. INC %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
  81. ; Since the user repeated, we increase his/her stats by 1
  82. IF (%rps > 2) {
  83. ; Checks if the user repeats more than twice
  84. ; Replace 2 with your limits
  85. ; Current settings kick/ban after 3 or more repeats...
  86. GLINE $nick You repeated %rps times, slow down!
  87. ; User repeated more than twice and is kick/banned...
  88. }
  89. }
  90. }
  91. }
  92.  
  93. ON @*:ACTION:*:#: {
  94. IF ($nick isop #) { RETURN }
  95. SET -u3 %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] $calc( %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] + 1)
  96. ; The variable, %fld.#chan.nick counts the number of lines the person speaks
  97. ; It is automatically unset 3 seconds after the last time the person talked
  98. ; So I guess in _theory_ if you managed to do 1 line per 3 secs for 3 lines you could be kicked
  99. IF (%fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] >= 5) {
  100. ; The above if statement checks if that variable is greater to or equals 5
  101. gline $nick Please do not flood
  102. }
  103. }
  104.  
  105. ON @*:ACTION:*:#: {
  106. ; Defines on text so it triggers only if you're operator on the target channel
  107. IF ($nick !isop #) {
  108. ; Tells mIRC to go on if the nick isn't an operator
  109. IF (%r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == $null) {
  110. ; Checks if $nick has a prior record...
  111. ; If $nick is clean, this creates user records for the nick...
  112. SET -u60 %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] 1
  113. ; mIRC creates a variable according to the nick and channel for 60 secs
  114. ; This stores the amount the nick has repeated within 60 seconds...
  115. SET -u60 %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ] $1-
  116. ; This stores the users text, used to check future text for matches...
  117. ; Replace 60 to adjust listening duration, 60 seconds = 1 minute
  118. ; mIRC resets stats after 60 seconds according to current settings
  119. RETURN
  120. }
  121. VAR %rps = %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
  122. ; %rps now represents how many times the user repeated...
  123. VAR %rpt = %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
  124. ; %rpt represents the users previous text...
  125. IF (%rpt == $1-) {
  126. ; Checks if the current text matches previous text...
  127. ; If they match, the user repeated...
  128. INC %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
  129. ; Since the user repeated, we increase his/her stats by 1
  130. IF (%rps > 2) {
  131. ; Checks if the user repeats more than twice
  132. ; Replace 2 with your limits
  133. ; Current settings kick/ban after 3 or more repeats...
  134. GLINE $nick You repeated %rps times, slow down!
  135. ; User repeated more than twice and is kick/banned...
  136. }
  137. }
  138. }
  139. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement