Kick/ban if bold, underlined, or color is used

By lrietveld on May 01, 2004

Just put it in remote, and it'll do the work. There is just 1 warning, and after that a permanent kick/ban.
All the credits go out to 'tidy trax', user of the mirc forum.

p.s. If you want a temporarily ban, instead of these lines:
mode # +b $address $chan $nick You were warned
kick # $nick

You could use this line:
ban -ku60 $chan $nick You were warned

(For changing the time of the ban, change the number 60. (stands for seconds))

on $@*:text:/||/:#:{  
  if $nick isreg $chan {    
    hinc -m col $nick    
    if $hget(col,$nick) == 1 { msg # 0,1This is the first and only warning $nick $+ , do not use colours, underline or bold in this channel. Next time you will be banned.     }    
    elseif $hget(col,$nick) == 2 {       
      mode # +b $address $chan $nick You were warned   
      kick # $nick     
      hdel col $nick    
    }  
  }
}

Comments

Sign in to comment.
UTUCS.com-Admin   -  May 02, 2004

If you want to make it easier with a non-permanent ban, use this. Note that %mins is the minutes until the ban is removed (NOT seconds): on $@:text:/||/:#:{ var %mins = 15 | var %cnt = $calc(%mins 60) | if $nick isreg $chan { hinc -m col $nick | if $hget(col,$nick) == 1 { msg # 0,1This is the first and only warning $nick $+ , do not use colours, underline or bold in this channel. Next time you will be banned. } | elseif $hget(col,$nick) == 2 { ban -u $+ %cnt $chan $nick You were warned | hdel col $nick } } }

 Respond  
SaltyFrie   -  May 01, 2004

You might try adding a permanent ban to that script. I won\'t insult your intelligence by posting up the script, I think you can handle it.

 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.