mIRC Homepage
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?
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.
Thanx wink. It worked instantly smile
yw laugh
© mIRC Discussion Forums