mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2004
Posts: 19
L
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?

Joined: Nov 2003
Posts: 2,327
T
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
Joined: Apr 2004
Posts: 19
L
Pikka bird
OP Offline
Pikka bird
L
Joined: Apr 2004
Posts: 19
Thanx wink. It worked instantly smile

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
yw laugh


New username: hixxy

Link Copied to Clipboard