mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2007
Posts: 9
R
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Feb 2007
Posts: 9
any ban kick script for those who
write to mutch letters in a word or frase

for example:
hiiii how areeeeeeeeeee you
or
helooooooooo roooooommm i'm baaaaaaackkk

Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
Code:
on @$*:text:/(.{1})\1{3}/:#yourchannel,#otherchannel: {
  ; The regex explained...
  ; (.{1})\1{3}
  ; ( and ) mean "remeber whats inbetween"
  ; . means "any character"
  ; {1} means "one time"
  ; \1 means "the first result"
  ; {3} means "three times"
  ; So together it means: "Find any letter/symbol, then find three more of the letter/symbol after the first one."
  ; To change how many letters you want, subtract one from it, and put it into the '\1{number}' where number is the number.
  ; IE to change it to 5 times, you put 4 inside the ' \1{number}': on @$*:text:/(.{1})\1{4}/:#yourchannel: {
  ; You can also seperate the channels with a comma.
  kick $chan $nick Don't repeat letters/symbols.
}

press "ALT + R" two times, and paste it in a new file. Also change the #Channel,#otherchannel to your channel(s).


Those who can, cannot. Those who cannot, can.
Joined: Feb 2007
Posts: 9
R
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Feb 2007
Posts: 9
thank you Kardafol.Its working!

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
.{1} is the same as .

Just a heads up smile


Link Copied to Clipboard