mIRC Home    About    Download    Register    News    Help

Print Thread
Kick people who use underlined, bold and colors #81591 01/05/04 08:48 PM
Joined: Apr 2004
Posts: 19
L
lrietveld Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Apr 2004
Posts: 19
This afternoon I had a 'quest' for scripts that automaticly warn/kick/ban people who use colours, bold or underlined text. But oddly, I couldnt find any. Why do you guys think this is? Is it just too unpopular to use such a script? (btw, there are 'caps scripts' enough, but as you can understand, that's not all I want :P )
I have a channel, in which I would like to run such in.
So that everybody (except the aops/hops/vops) can't use underlined, bold or coloured text. Could you guys help me out, about how to handle this?

Re: Kick people who use underlined, bold and colors #81592 01/05/04 08:57 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on $@*:text:/||/:#:{
  if $nick isreg $chan {
    hinc -m col $nick
    if $hget(col,$nick) == 1 { msg # first and only warning $nick $+ , do not use colours, underline or bold in this channel. }
    elseif $hget(col,$nick) == 2 { 
      ban -ku60 $chan $nick you were warned.
      hdel col $nick
    }
  }
}
on *!:part:#:{ 
  if $hget(col,$nick) { .hdel col $nick }
}
on *!:quit:{
  if $hget(col,$nick) { .hdel col $nick }
}


- untested.


New username: hixxy
Re: Kick people who use underlined, bold and colors #81593 01/05/04 09:33 PM
Joined: Apr 2004
Posts: 19
L
lrietveld Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Apr 2004
Posts: 19
Thanx wink. It worked instantly smile

Re: Kick people who use underlined, bold and colors #81594 01/05/04 09:40 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
yw laugh


New username: hixxy