Simple anti - long text

By blitzz on Apr 01, 2010

This is a simple long text/excess code detector. Added with the menu so it easily to change rather than open the remote.

Enjoy.

menu channel,menubar {
  Set long text limit: set %limit $$?"Set limit for your anti - long text here (In number)"
  Check current limit: echo -a You have set - %limit - Long text detector
}
on @*:text:*:#: { if $len($1-) > %limit { ban -ku300 # $nick 2 Excess code/Long text detected - Banned! : 5min } }

Comments

Sign in to comment.
bayokekg   -  Sep 26, 2010

i can't :( .. how to set Number . ur script is not work my Remote

 Respond  
Jethro   -  Apr 02, 2010

You can do this with regex easily:

on $@*:text:$(/(.){ $+ %limit $+ }/iS):#:ban -ku300 # $nick 2 Excess code/Long text detected - Banned! : 5min

Although I think you should exclude the space, which needn't be counted toward the limit.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.