Top

Anti-Repeat


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  7.0 (of 1 scores)
Date Added  Mar 15, 2008
Last Updated  Mar 15, 2008
Tags  anti  antirepeat  antispam  bluethen  repeat  script  snippet  spam 

Introduction

Sort of a anti-repeat script. Whenever someone repeats a text more than 3 times, it will "ignore" that person's text until he or she say's something else.

To install, put this scripts in your Remote Scripts (Alt R), and
lala! You are now safe from repetitive spam.


Grab the Code

;Anti-Repeat
;First made by BlueThen on March 4, 2008.
;Last updated on March 15, 2008.
;To install, put this scripts in your Remote Scripts (Alt R), and
;lala! You are now safe from repetitive spam.
on ^*:text:*:*: {
  if ($readini(logs.ini,$nick,last) == $1-) {
    if ($readini(logs.ini,$nick,warns) == $null) {
      writeini -n logs.ini $nick warns 0
    }
    writeini -n logs.ini $nick warns $calc($readini(logs.ini,$nick,warns) + 1)
    if ($readini(logs.ini,$nick,warns) >= 3) {
      if ($readini(logs.ini,$nick,warns) == 3) {
        .echo -mt Halted text from: $nick for repetitive text.
      }
      haltdef
    } 
  }
  if ($readini(logs.ini,$nick,last) != $1-) {
    writeini -n logs.ini $nick warns 0
  }
  writeini -n logs.ini $nick last $1-
}
 

Comments

  (9)  RSS
Joshuaxiong1
Comments: 127
 
mIRC Snippet:  Anti-Repeat
Posted on Mar 17, 2008 12:52 am
Wow great. I like it.
Joshuaxiong1
Comments: 127
 
mIRC Snippet:  Anti-Repeat
Posted on Nov 8, 2008 9:42 pm
This one is great. I like it but when they repeat 6 times it echo another Halted text from $nick sooo... it really doesn't like make it so mIRC doesn't see it just make you don't see. What I mean.
[Joshh]
Comments: 13
 
mIRC Snippet:  Anti-Repeat
Posted on Nov 8, 2008 9:47 pm
Kind of the point is just so you don't see it, mIRC still has to parse it :P
Cheiron
Comments: 627
 
mIRC Snippet:  Anti-Repeat
Posted on Nov 9, 2008 2:31 am
question for you Blue Then.. could you do an update or let me know what to edit as this has more than just a personal setting that has me interested.. this could be a very effective anti-flood for a channel. i been looking for something similiar for a while.. this is getting a 7 straight up from me. nice job as always
BlueThen
Comments: 391
 
mIRC Snippet:  Anti-Repeat
Posted on Nov 9, 2008 8:33 am
Glad you liked it!
If you want to make it more channel oriented, you can change
Code:
    if ($readini(logs.ini,$nick,warns) >= 3) {
      if ($readini(logs.ini,$nick,warns) == 3) {
        .echo -mt Halted text from: $nick for repetitive text.
      }
      haltdef
    }

into
Code:
      if ($readini(logs.ini,$nick,warns) == 3) {
        .kick $chan $nick Repetitive messages
      }

Replace 3 with whatever number you want. The lower it is, the more harsh the bot is.
Then change the first line of the code into
Code:
on *:text:*:#channel: {

Replace #channel with whatever channel you like.

Cheiron
Comments: 627
 
mIRC Snippet:  Anti-Repeat
Posted on Nov 9, 2008 8:48 am
oooooooh.......

many thank-yous Blue Then :D
BlueThen
Comments: 391
 
mIRC Snippet:  Anti-Repeat
Posted on Nov 9, 2008 8:55 am
No problem.
Joshuaxiong1
Comments: 127
 
mIRC Snippet:  Anti-Repeat
Posted on Nov 9, 2008 3:35 pm
huh I posted then people started posting.

All I did was just add the kick after the echo
SweeTCooL
Comments: 18
 
mIRC Snippet:  Anti-Repeat
Posted on Sep 18, 2009 8:15 am
Dont use that shoot -.-

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom