Advertisement
westor

Akick nicks/idents/hosts INI v1.2 for Ruther

Oct 18th, 2019
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.15 KB | None | 0 0
  1. alias blacklisted {
  2.   var %c = $1
  3.   if ($status !== connected) || (!%c) || (%c !ischan) || ($me isreg %c) { return }
  4.  
  5.   var %f = akicks.ini
  6.  
  7.   var %t = $ini(%f,nicknames,0)
  8.   if (!%t) { goto idents }
  9.  
  10.   var %i = 1
  11.  
  12.   while (%i <= %t) {
  13.     var %n = $ini(%f,nicknames,%i)
  14.     var %r = $readini(%f,n,nicknames,%n)
  15.  
  16.     if (%n ison %c) && (%r) { mode %c +b %n $+ !*@* | kick %c %n %r }
  17.  
  18.     inc %i
  19.   }
  20.  
  21.   :idents
  22.  
  23.   var %tt = $ini(%f,idents,0)
  24.   if (!%tt) { goto ips }
  25.  
  26.   var %ii = 1
  27.  
  28.   while (%ii <= %tt) {
  29.     var %d = $ini(%f,idents,%ii)
  30.     var %rr = $readini(%f,n,idents,%d)
  31.     var %mm = $remove($ialchan(*! $+ %d $+ @*,%c,1),~)
  32.     var %nn = $gettok(%mm,1,33)
  33.  
  34.     if (%mm) && (%nn ison %c) && (%rr) { mode %c +b *! $+ %d $+ @* | kick %c %nn %rr }
  35.  
  36.     inc %ii
  37.   }
  38.  
  39.   :ips
  40.  
  41.   var %ttt = $ini(%f,ips,0)
  42.   if (!%ttt) { return }
  43.  
  44.   var %iii = 1
  45.  
  46.   while (%iii <= %ttt) {
  47.     var %h = $ini(%f,ips,%iii)
  48.     var %rrr = $readini(%f,n,ips,%h)
  49.     var %mmm = $ialchan(*@ $+ %h,%c,1)
  50.     var %nnn = $gettok(%mmm,1,33)
  51.  
  52.     if (%mmm) && (%nnn ison %c) && (%rrr) { mode %c +b *!*@ $+ %h | kick %c %nnn %rrr }
  53.  
  54.     inc %iii
  55.   }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement