Advertisement
westor

Badnicks Kicker for Wizard v1.0

Oct 13th, 2018
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.76 KB | None | 0 0
  1. alias check_badnick {
  2.   var %f = badnicks.txt
  3.   var %t = $lines(%f)
  4.   if (!%t) { return }
  5.  
  6.   var %i = 1
  7.   while (%i <= %t) {
  8.     var %r = $read(%f,n,%i)
  9.     if (%r iswm $1) { return 1 }
  10.     inc %i
  11.   }
  12.  
  13.   return 0
  14. }
  15.  
  16.  
  17. ON !*:JOIN:#: {
  18.   if ($check_badnick($nick)) {
  19.     msg # 3 $nick 12 Your nick is inappropriate. Please change it in 30 sec by typing 4/nick newnick
  20.     timer 1 30 ban # -ku600 $nick
  21.   }
  22. }
  23.  
  24. ON !*:NICK: {
  25.   if ($check_badnick($newnick)) {
  26.     var %t = $comchan($newnick,0)
  27.     var %i = 1
  28.     while (%i <= %t) {
  29.       var %chan = $comchan($newnick,%i)
  30.       msg %chan 3 $newnick 12 Your nick is inappropriate. Please change it in 30 sec by typing 4/nick newnick
  31.       timer 1 30 ban %chan -ku600 $newnick
  32.       inc %i
  33.     }
  34.   }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement