mIRC Home    About    Download    Register    News    Help

Print Thread
#249115 15/11/14 02:18 AM
Joined: Aug 2014
Posts: 32
S
Sparkz Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2014
Posts: 32
Is there a script that blocks people that spam something and doesn't leave a space. Also would like to change the amount at which it times people out.

e.g: Zfkftifshhgffhjfdfhjjgdfhjkhgfhjjhgfffhj

Sparkz #249119 15/11/14 08:08 AM
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Yes ,it's easy but what about with the monosyllabic words?

e.g: ok or yes etc..

Also how much limit you want to have the bigger word on the line to not effect the user?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #249131 15/11/14 12:18 PM
Joined: Aug 2014
Posts: 32
S
Sparkz Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2014
Posts: 32
Basically I need a script that will timeout someone for typing in this kind of spam:

shiughsadgosdbigudssdgsdg
augeqbpuqbudbpdgogpidg

What I need is a script that will time someone out for not having a space after a certain amount of characters. I would also like to be able to change the number at which it times them out (number of characters without a space)

Thank you

Sparkz #249132 15/11/14 12:30 PM
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try use this code:

Command for change the limit: !editlen <SECONDS> - (E.g: !editlen 50)

Code:
ON !*:TEXT:*:#: {
  if ($strip($1,burci) == !editlen) {
    tokenize 32 $strip($1-,burci)
    if (!$2) { .msg $chan ( $+ $nick $+ ): Error, Not enough parameters, try again and use the number of text limitation! | return }
    if ($2 !isnum) { .msg $chan ( $+ $nick $+ ): Error, Incorrect parameters, try again and use only numbers! | return }
    var %ch = $iif(%txt_len,changed,added)
    set %txt_len $2
    .msg $chan ( $+ $nick $+ ): The No-Space characters limitation has been %ch to $qt($2) $+ .
  }
  if ($1-) && ($chr(32) !isin $1-) && (%txt_len) {
    if ($len($1-) >= %txt_len) { .msg $chan .timeout $nick 2 }
  }
}


EDIT: Paste this code on an new file on your mirc.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard