mIRC Home    About    Download    Register    News    Help

Print Thread
S
Sableye2
Sableye2
S
I am requesting for a script to be made. When a person exceeds a character limit per line, that person will be banned.

Example: If I set the limit to 50 characters per line and a person types a sentence with 100 characters, then that person is banned.

This is to prevent large posts (spam posts).

Joined: Mar 2003
Posts: 611
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 611
on 1:text:*:#channel:{
if $len($1-) > 50 {
ban -k #channel $nick 2 spammer
}
}


billythekid
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Code:
 on @*:text:*:#:{
  if $len($strip($1-)) > 50 {
    .ban -k $chan $nick 2 No more than 50 characters per message
  }
}
 

I used the 50 count as given in your example...you should be good enough by now to be able to change that to whatever number you want. Note this only counts the number of seen characters. Codes for colouring, bold, underline or reverse text are not included.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Yikes! I'd always be banned. 100 characters is not very many and I'd go over that all the time, just having a normal conversation. Heh.

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
haha me too

best keep it to hi and bye in that channel.....

Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
You have to learn
to talk like an
AOL user who
is unable to type
an entire sentence
without hitting the
enter key repeatedly.

-genius_at_work

S
Sableye2
Sableye2
S
It was just an example. I honestly wouldn't set it to 50 lol

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
You have to learn
to talk like an
AOL user who
is unable to type
an entire sentence
without hitting the
enter key repeatedly.

-genius_at_work


erm... what can I say??? BUWAHAHAAHAHAHAAHAHAAHAHAAHAHAAHAHAAHAHA


Link Copied to Clipboard