Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ON @*:TEXT:*:#: {
- IF ($nick isop #) { RETURN }
- SET -u3 %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] $calc( %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] + 1)
- ; The variable, %fld.#chan.nick counts the number of lines the person speaks
- ; It is automatically unset 3 seconds after the last time the person talked
- ; So I guess in _theory_ if you managed to do 1 line per 3 secs for 3 lines you could be kicked
- IF (%fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] >= 5) {
- ; The above if statement checks if that variable is greater to or equals 5
- gline $nick Please do not flood
- }
- }
- ON @*:TEXT:*:#: {
- ; Defines on text so it triggers only if you're operator on the target channel
- IF ($nick !isop #) {
- ; Tells mIRC to go on if the nick isn't an operator
- IF (%r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == $null) {
- ; Checks if $nick has a prior record...
- ; If $nick is clean, this creates user records for the nick...
- SET -u60 %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] 1
- ; mIRC creates a variable according to the nick and channel for 60 secs
- ; This stores the amount the nick has repeated within 60 seconds...
- SET -u60 %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ] $1-
- ; This stores the users text, used to check future text for matches...
- ; Replace 60 to adjust listening duration, 60 seconds = 1 minute
- ; mIRC resets stats after 60 seconds according to current settings
- RETURN
- }
- VAR %rps = %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
- ; %rps now represents how many times the user repeated...
- VAR %rpt = %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
- ; %rpt represents the users previous text...
- IF (%rpt == $1-) {
- ; Checks if the current text matches previous text...
- ; If they match, the user repeated...
- INC %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
- ; Since the user repeated, we increase his/her stats by 1
- IF (%rps > 2) {
- ; Checks if the user repeats more than twice
- ; Replace 2 with your limits
- ; Current settings kick/ban after 3 or more repeats...
- GLINE $nick You repeated %rps times, slow down!
- ; User repeated more than twice and is kick/banned...
- }
- }
- }
- }
- ON @*:NOTICE:*:#: {
- IF ($nick isop #) { RETURN }
- SET -u3 %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] $calc( %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] + 1)
- IF (%fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] >= 5) {
- ; The above if statement checks if that variable is greater to or equals 5
- gline $nick Please do not flood
- }
- }
- ON @*:NOTICE:*:#: {
- ; Defines on text so it triggers only if you're operator on the target channel
- IF ($nick !isop #) {
- ; Tells mIRC to go on if the nick isn't an operator
- IF (%r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == $null) {
- ; Checks if $nick has a prior record...
- ; If $nick is clean, this creates user records for the nick...
- SET -u60 %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] 1
- ; mIRC creates a variable according to the nick and channel for 60 secs
- ; This stores the amount the nick has repeated within 60 seconds...
- SET -u60 %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ] $1-
- ; This stores the users text, used to check future text for matches...
- ; Replace 60 to adjust listening duration, 60 seconds = 1 minute
- ; mIRC resets stats after 60 seconds according to current settings
- RETURN
- }
- VAR %rps = %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
- ; %rps now represents how many times the user repeated...
- VAR %rpt = %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
- ; %rpt represents the users previous text...
- IF (%rpt == $1-) {
- ; Checks if the current text matches previous text...
- ; If they match, the user repeated...
- INC %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
- ; Since the user repeated, we increase his/her stats by 1
- IF (%rps > 2) {
- ; Checks if the user repeats more than twice
- ; Replace 2 with your limits
- ; Current settings kick/ban after 3 or more repeats...
- GLINE $nick You repeated %rps times, slow down!
- ; User repeated more than twice and is kick/banned...
- }
- }
- }
- }
- ON @*:ACTION:*:#: {
- IF ($nick isop #) { RETURN }
- SET -u3 %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] $calc( %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] + 1)
- ; The variable, %fld.#chan.nick counts the number of lines the person speaks
- ; It is automatically unset 3 seconds after the last time the person talked
- ; So I guess in _theory_ if you managed to do 1 line per 3 secs for 3 lines you could be kicked
- IF (%fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] >= 5) {
- ; The above if statement checks if that variable is greater to or equals 5
- gline $nick Please do not flood
- }
- }
- ON @*:ACTION:*:#: {
- ; Defines on text so it triggers only if you're operator on the target channel
- IF ($nick !isop #) {
- ; Tells mIRC to go on if the nick isn't an operator
- IF (%r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == $null) {
- ; Checks if $nick has a prior record...
- ; If $nick is clean, this creates user records for the nick...
- SET -u60 %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ] 1
- ; mIRC creates a variable according to the nick and channel for 60 secs
- ; This stores the amount the nick has repeated within 60 seconds...
- SET -u60 %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ] $1-
- ; This stores the users text, used to check future text for matches...
- ; Replace 60 to adjust listening duration, 60 seconds = 1 minute
- ; mIRC resets stats after 60 seconds according to current settings
- RETURN
- }
- VAR %rps = %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
- ; %rps now represents how many times the user repeated...
- VAR %rpt = %r.text. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
- ; %rpt represents the users previous text...
- IF (%rpt == $1-) {
- ; Checks if the current text matches previous text...
- ; If they match, the user repeated...
- INC %r. [ $+ [ $nick ] $+ . $+ [ $chan ] ]
- ; Since the user repeated, we increase his/her stats by 1
- IF (%rps > 2) {
- ; Checks if the user repeats more than twice
- ; Replace 2 with your limits
- ; Current settings kick/ban after 3 or more repeats...
- GLINE $nick You repeated %rps times, slow down!
- ; User repeated more than twice and is kick/banned...
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement