#################
####################
######By [F]iRe [A]nGeL######
####################
#################


on *:load:{
  echo -at 4 Caricamento in corso...
  set %ck1 off
  set %ck2 off
  set %ck3 off
  set %ck4 off
  set %ck5 off
  set %ck6 off
  set %ck7 off
  set %ck8 off
  set %ck9 off
  set %ck10 off
  set %ck11 off
  set %ck12 off
  set %ck13 off
  set %ck14 off
  set %ck15 off
  set %ck16 off
  set %ck17 off
  set %ck18 off
  set %ck19 off
  set %ck20 off
  set %ck21 off
  set %ck22 off
  set %ck23 off
  set %ck24 off
  Set %f1 
  Set %f2 
  Set %f3 
  Set %f4 
  Set %f5 
  Set %f6 
  Set %f7 
  Set %ca1 
  Set %ca2 
  Set %ca3 
  Set %ca4 
  Set %ca5 
  Set %ca6 
  Set %ca7 
  Set %fatt 
  echo -at 4 Caricato correttamente.
  echo -at 4 Il Pannello delle Protezioni è pronto per essere utilizzato.
  echo -at 4 Per cominciare ad utilizzare il Sistema clicca sulla
  echo -at 4 barra del menù e 
  echo -at 4 poi clicca sulla voce "Protezione totale".
  echo -at 4 Grazie per aver scelto questa Utility. 
}


dialog -l protection {
  title "Protezione Totale By [F]iR[e] [A]nGe[L]"
  size -1 -1 209 174
  option dbu
  tab "On deop", 31, 2 31 205 122
  tab "On Kick", 32
  tab "On Ban", 33
  tab "Eccezioni", 34
  tab "On Akick", 35
  tab "Esclusioni", 37
  box "On Akick", 23, 12 47 150 50, tab 35
  box "Eccezioni Automatiche", 11, 12 47 150 60, tab 34
  box "On Ban", 7, 12 47 150 100, tab 33
  box "On kick", 2, 12 47 150 100, tab 32
  box "On deop", 1, 12 47 150 100, tab 31
  check "Rimettiti l'op", 3, 20 60 60 8, tab 31
  check "Deoppa l'aggressore", 4, 20 70 60 8, tab 31
  check "Kicka l'aggressore", 5, 20 80 60 8, tab 31
  check "Banna l'aggressore", 6, 20 90 60 8, tab 31
  check "Deoppa l'aggressore", 8, 20 60 60 8, tab 32
  check "Kicka l'aggressore", 9, 20 70 60 8, tab 32
  check "Banna l'aggressore", 10, 20 80 60 8, tab 32
  check "Deoppa l'aggressore", 12, 20 60 60 8, tab 33
  check "Kicka l'aggressore", 13, 20 70 60 8, tab 33
  check "Banna l'aggressore", 14, 20 80 60 8, tab 33
  check "Togli tuo ban", 15, 20 100 60 8, tab 33
  check "Akicka l'agressore", 16, 20 90 60 8, tab 33
  check "Attiva su Host", 18, 20 60 50 8, tab 34
  button "Ok", 17, 76 157 56 12, ok
  check "Attiva Protezioni", 19, 76 11 56 8, left
  check "Toglilo dall'Access", 20, 20 100 60 8, tab 31
  check "Toglilo dall'Access", 21, 20 90 60 8, tab 32
  check "Toglilo dall'Access", 22, 20 110 60 8, tab 33
  check "Attiva Protezione da Akick", 24, 20 60 79 8, tab 35
  check "Togli mass Akick ", 25, 20 70 50 8, tab 35
  box "Togli eccezioni e inviti all'aggressore ", 26, 12 110 150 35, tab 34
  check "Togli Eccezioni", 27, 20 125 50 8, tab 34
  check "Attiva su Nick", 28, 20 70 50 8, tab 34
  check "Attiva su Mask", 29, 20 80 65 8, tab 34
  check "Togli Inviti", 30, 80 125 50 8, tab 34
  check "Rimetti eccezioni se tolte", 36, 20 90 70 8, tab 34
  box "Inserisci i chan che vuoi escludere dalle protezioni  preceduti dal #", 38, 7 49 193 99, tab 37
  check "Check", 39, 10 60 8 8, tab 37
  check "Check", 40, 10 70 8 8, tab 37
  check "Check", 41, 10 80 8 8, tab 37
  check "Check", 42, 10 90 8 8, tab 37
  check "Check", 43, 10 100 8 8, tab 37
  check "Check", 44, 10 110 8 8, tab 37
  check "Check", 45, 10 120 8 8, tab 37
  check "Attiva", 46, 154 138 40 8, tab 37 left
  edit %ca1, 47, 20 60 175 10, tab 37
  edit %ca2, 48, 20 70 175 10, tab 37
  edit %ca3, 49, 20 80 175 10, tab 37
  edit %ca4, 50, 20 90 175 10, tab 37
  edit %ca5, 51, 20 100 175 10, tab 37
  edit %ca6, 52, 20 110 175 10, tab 37
  edit %ca7, 53, 20 120 175 10, tab 37
}

Alias prt { /dialog -m protection protection }


on *:DIALOG:protection:sclick:3: { Set %ck1 $did(3) }
on *:DIALOG:protection:sclick:4: { Set %ck2 $did(4) }
on *:DIALOG:protection:sclick:5: { Set %ck3 $did(5) }
on *:DIALOG:protection:sclick:6: { Set %ck4 $did(6) }
on *:DIALOG:protection:sclick:8: { Set %ck5 $did(8) }
on *:DIALOG:protection:sclick:9: { Set %ck6 $did(9) }
on *:DIALOG:protection:sclick:10: { Set %ck7 $did(10) }
on *:DIALOG:protection:sclick:12: { Set %ck8 $did(12) }
on *:DIALOG:protection:sclick:13: { Set %ck9 $did(13) }
on *:DIALOG:protection:sclick:14: { Set %ck10 $did(14) }
on *:DIALOG:protection:sclick:15: { Set %ck11 $did(15) }
on *:DIALOG:protection:sclick:16: { Set %ck12 $did(16) }
on *:DIALOG:protection:sclick:18: { Set %ck13 $did(18) }
on *:DIALOG:protection:sclick:19: { Set %ck14 $did(19) }
on *:DIALOG:protection:sclick:20: { Set %ck15 $did(20) }
on *:DIALOG:protection:sclick:21: { Set %ck16 $did(21) }
on *:DIALOG:protection:sclick:22: { Set %ck17 $did(22) }
on *:DIALOG:protection:sclick:24: { Set %ck18 $did(24) }
on *:DIALOG:protection:sclick:25: { Set %ck19 $did(25) }
on *:DIALOG:protection:sclick:27: { Set %ck20 $did(27) }
on *:DIALOG:protection:sclick:28: { Set %ck21 $did(28) }
on *:DIALOG:protection:sclick:29: { Set %ck22 $did(29) }
on *:DIALOG:protection:sclick:30: { Set %ck23 $did(30) }
on *:DIALOG:protection:sclick:36: { Set %ck24 $did(36) }
on *:DIALOG:protection:sclick:39: { Set %f1 $did(39) }
on *:DIALOG:protection:sclick:40: { Set %f2 $did(40) }
on *:DIALOG:protection:sclick:41: { Set %f3 $did(41) }
on *:DIALOG:protection:sclick:42: { Set %f4 $did(42) }
on *:DIALOG:protection:sclick:43: { Set %f5 $did(43) }
on *:DIALOG:protection:sclick:44: { Set %f6 $did(44) }
on *:DIALOG:protection:sclick:45: { Set %f7 $did(45) }
on *:DIALOG:protection:edit:47: { Set %ca1 $did(47) }
on *:DIALOG:protection:edit:48: { Set %ca2 $did(48) }
on *:DIALOG:protection:edit:49: { Set %ca3 $did(49) }
on *:DIALOG:protection:edit:50: { Set %ca4 $did(50 }
on *:DIALOG:protection:edit:51: { Set %ca5 $did(51) }
on *:DIALOG:protection:edit:52: { Set %ca6 $did(52) }
on *:DIALOG:protection:edit:53: { Set %ca7 $did(53) }
on *:DIALOG:protection:sclick:46: { Set %fatt $did(45) }

on *:dialog:protection:init:*: {
  if %ck1 = ON { did -c protection 3 }  
  if %ck2 = ON { did -c protection 4 }  
  if %ck3 = ON { did -c protection 5 }  
  if %ck4 = ON { did -c protection 6 }  
  if %ck5 = ON { did -c protection 8 }  
  if %ck6 = ON { did -c protection 9 }  
  if %ck7 = ON { did -c protection 10 }  
  if %ck8 = ON { did -c protection 12 }  
  if %ck9 = ON { did -c protection 13 }  
  if %ck10 = ON { did -c protection 14 }  
  if %ck11 = ON { did -c protection 15 }  
  if %ck12 = ON { did -c protection 16 }  
  if %ck13 = ON { did -c protection 18 }  
  if %ck14 = ON { did -c protection 19 }  
  if %ck15 = ON { did -c protection 20 }  
  if %ck16 = ON { did -c protection 21 }  
  if %ck17 = ON { did -c protection 22 }
  if %ck18 = ON { did -c protection 24 } 
  if %ck19 = ON { did -c protection 25 }
  if %ck20 = ON { did -c protection 27 }       
  if %ck21 = ON { did -c protection 28 } 
  if %ck22 = ON { did -c protection 29 } 
  if %ck23 = ON { did -c protection 30 } 
  if %ck24 = ON { did -c protection 36 } 
  if %f1 = ON { did -c protection 39 }
  if %f2 = ON { did -c protection 40 }
  if %f3 = ON { did -c protection 41 }
  if %f4 = ON { did -c protection 42 }
  if %f5 = ON { did -c protection 43 }
  if %f6 = ON { did -c protection 44 }
  if %f7 = ON { did -c protection 45 }
  if %fatt = ON { did -c protection 46 }
}

on *:dialog:protection:sclick:17: { 
  if ($did(protection,3).state = 1) { %ck1 = on } | else { %ck1 = off }
  if ($did(protection,4).state = 1) { %ck2 = on } | else { %ck2 = off }
  if ($did(protection,5).state = 1) { %ck3 = on } | else { %ck3 = off }
  if ($did(protection,6).state = 1) { %ck4 = on } | else { %ck4 = off }
  if ($did(protection,8).state = 1) { %ck5 = on } | else { %ck5 = off }
  if ($did(protection,9).state = 1) { %ck6 = on } | else { %ck6 = off }
  if ($did(protection,10).state = 1) { %ck7 = on } | else { %ck7 = off }
  if ($did(protection,12).state = 1) { %ck8 = on } | else { %ck8 = off }
  if ($did(protection,13).state = 1) { %ck9 = on } | else { %ck9 = off }
  if ($did(protection,14).state = 1) { %ck10 = on } | else { %ck10 = off }
  if ($did(protection,15).state = 1) { %ck11 = on } | else { %ck11 = off }
  if ($did(protection,16).state = 1) { %ck12 = on } | else { %ck12 = off }
  if ($did(protection,18).state = 1) { %ck13 = on } | else { %ck13 = off }
  if ($did(protection,19).state = 1) { %ck14 = on } | else { %ck14 = off }
  if ($did(protection,20).state = 1) { %ck15 = on } | else { %ck15 = off }
  if ($did(protection,21).state = 1) { %ck16 = on } | else { %ck16 = off }
  if ($did(protection,22).state = 1) { %ck17 = on } | else { %ck17 = off }
  if ($did(protection,24).state = 1) { %ck18 = on } | else { %ck18 = off }
  if ($did(protection,25).state = 1) { %ck19 = on } | else { %ck19 = off }
  if ($did(protection,27).state = 1) { %ck20 = on } | else { %ck20 = off }
  if ($did(protection,28).state = 1) { %ck21 = on } | else { %ck21 = off }
  if ($did(protection,29).state = 1) { %ck22 = on } | else { %ck22 = off }
  if ($did(protection,30).state = 1) { %ck23 = on } | else { %ck23 = off }
  if ($did(protection,36).state = 1) { %ck24 = on } | else { %ck24 = off }
  if ($did(protection,39).state = 1) { %f1 = on } | else { %f1 = off }
  if ($did(protection,40).state = 1) { %f2 = on } | else { %f2 = off }
  if ($did(protection,41).state = 1) { %f3 = on } | else { %f3 = off }
  if ($did(protection,42).state = 1) { %f4 = on } | else { %f4 = off }
  if ($did(protection,43).state = 1) { %f5 = on } | else { %f5 = off }
  if ($did(protection,44).state = 1) { %f6 = on } | else { %f6 = off }
  if ($did(protection,45).state = 1) { %f7 = on } | else { %f7 = off }
  if ($did(protection,46).state = 1) { %fatt = on } | else { %fatt = off }
}

on *:Deop:#:{
  if ($chan == %ca1) && (%f1 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca2) && (%f2 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca3) && (%f3 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca4) && (%f4 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca5) && (%f5 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca6) && (%f6 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca7) && (%f7 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($opnick == $me)  && (%ck14 == on) && ($nick != ChanServ) && ($nick != $me) && (%ck1 == on) {  /cs op # $me | msg $chan 3 $nick Ecco! Perché mi  deoppi?  { if (%ck2 == on) { /cs deop # $nick } 
      if (%ck3 == on)  { .timer 1 1 /kick # $nick }
      if (%ck4 == on)  { .timer 1 1 /ban -k # $nick 2 }
      { echo 9 -a $timestamp - $nick -  con mask - $address - ti ha deoppato su - $chan - 4GrAzIe!!! }
      if (%ck15 == on) { /cs access # del $nick }
      if (%ck20 == on) { .timer 1 1 /mode # -e $nick | .timer 1 1 /mode $chan -e $mask($ial($nick,1),2) | .timer 1 1 /mode $chan -e $mask($ial($nick,1),3) | .timer 1 1 /mode $chan -e $address($nick,1) }
      if (%ck23 == on) { .timer 1 1 /mode $chan -I $mask($ial($nick,1),3) | .timer 1 1 /mode # -I $nick | .timer 1 1 /mode $chan -I $mask($ial($nick,1),2) | .timer 1 1 /mode $chan -I $address($nick,1) }   
      if ($chan == %ca1) && (%f1 == on) && (%fatt == on) { halt }
    }
  }
  elseif (%ck14 == off) { return }
}

on 1:KICK:#:{ 
  if ($chan == %ca1) && (%f1 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca2) && (%f2 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca3) && (%f3 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca4) && (%f4 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca5) && (%f5 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca6) && (%f6 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca7) && (%f7 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($knick == $me) && (%ck5 == on) && (%ck14 == on) && ($nick != ChanServ) && ($nick !== $me) { /cs deop # $nick } 
  if ($knick == $me) && (%ck6 == on) && (%ck14 == on) && ($nick != ChanServ) && ($nick !== $me) { /kick # $nick } 
  if ($knick == $me) && (%ck7 == on) && (%ck14 == on) && ($nick != ChanServ) && ($nick !== $me) { /ban # $nick } 
  if ($knick == $me) && (%ck16 == on) && (%ck14 == on) && ($nick != ChanServ) && ($nick !== $me) { /cs access # del $nick } 
  if ($knick == $me) && (%ck14 == on) && ($nick != ChanServ) && ($nick !== $me) { echo 9 -a $timestamp - $nick -  con mask - $address - ti ha Kickato su - $chan - }
  if ( $knick == $me ) && (%ck18 == on) && (%ck14 == on) && ($nick ison $chan) && ($nick !== $me) { /cs akick # del $address($me,2) | /cs akick # del $me | /cs unban # me | .timer 1 7 .join # }
  if ( $knick == $me ) && (%ck19 == on) && (%ck14 == on) && ($nick ison $chan) && ($nick !== $me) { /cs akick # del *!*@* | mode # -b *!*@* | .timer 1 7 .join # }
  if ( $knick == $me ) && (%ck20 == on) && (%ck14 == on) && ($nick ison $chan) && ($nick !== $me) { /mode # -e $nick | /mode $chan -e $mask($ial($nick,1),2) | /mode $chan -e $mask($ial($nick,1),3) | /mode $chan -e $address($nick,1) }
  if ( $knick == $me ) && (%ck23 == on) && (%ck14 == on) && ($nick ison $chan) && ($nick !== $me) { /mode $chan -I $mask($ial($nick,1),3) | /mode # -I $nick | mode $chan -I $mask($ial($nick,1),2) | /mode $chan -I $address($nick,1) }
}

on *:ban:#:{ 
  if ($chan == %ca1) && (%f1 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca2) && (%f2 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca3) && (%f3 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca4) && (%f4 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca5) && (%f5 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca6) && (%f6 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca7) && (%f7 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($banmask iswm $address($me,6)) && ($me isop $chan) && ($nick ison $chan) && ($nick != $me) && ($nick != ChanServ) && (%ck8 == on) && (%ck14 == on) { /cs deop # $nick } 
  if ($banmask iswm $address($me,6)) && ($me isop $chan) && ($nick ison $chan) && ($nick != $me) && ($nick != ChanServ) && (%ck9 == on) && (%ck14 == on) { /kick # $nick  } 
  if ($banmask iswm $address($me,6)) && ($me isop $chan) && ($nick ison $chan) && ($nick != $me) && ($nick != ChanServ) && (%ck10 == on) && (%ck14 == on) { /ban # $nick }
  if ($banmask iswm $address($me,6)) && ($me isop $chan) && ($nick ison $chan) && ($nick != $me) && ($nick != ChanServ) && (%ck12 == on) && (%ck14 == on) { /cs akick # add $nick }
  if ($banmask iswm $address($me,6)) && ($me isop $chan) && ($nick ison $chan) && ($nick != $me) && ($nick != ChanServ) && (%ck11 == on) && (%ck14 == on) { /cs unban # me }
  if ($banmask iswm $address($me,6)) && ($me isop $chan) && ($nick ison $chan) && ($nick != $me) && ($nick != ChanServ) && (%ck17 == on) && (%ck14 == on) { /cs access # del $nick }
  if ($banmask iswm $address($me,6)) && ($me isop $chan) && ($nick ison $chan) && ($nick != $me) && (%ck14 == on) { echo 9 -a $timestamp - $nick -  con mask - $address - ti ha bAnnatO su - $chan - }
  if ($banmask iswm $address($me,6)) && ($me isop $chan) && ($nick ison $chan) && ($nick != $me) && ($nick != ChanServ) && (%ck20 == on) && (%ck14 == on) { /mode # -e $nick | /mode $chan -e $mask($ial($nick,1),2) | /mode $chan -e $mask($ial($nick,1),3) | /mode $chan -e $address($nick,1) }
  if ($banmask iswm $address($me,6)) && ($me isop $chan) && ($nick ison $chan) && ($nick != $me) && ($nick != ChanServ) && (%ck23 == on) && (%ck14 == on) { /mode $chan -I $mask($ial($nick,1),3) | /mode # -I $nick | mode $chan -I $mask($ial($nick,1),2) | /mode $chan -I $address($nick,1) }
}

ON *:RAWMODE:#:{ 
  if ($chan == %ca1) && (%f1 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca2) && (%f2 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca3) && (%f3 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca4) && (%f4 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca5) && (%f5 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca6) && (%f6 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if ($chan == %ca7) && (%f7 == on) && (%fatt == on) && (%ck14 == on) { halt }
  if (%ck13 == on) && (%ck14 == on) && (+a isin $1) && ($2 == $me) { /mode $chan +e $mask($ial($me,1),2) | mode $chan +I $mask($ial($me,1),2) }
  if (%ck13 == on) && (%ck14 == on) && (+o isin $1) && ($2 == $me) { /mode $chan +e $mask($ial($me,1),2) | mode $chan +I $mask($ial($me,1),2) }
  if (%ck13 == on) && (%ck14 == on) && (+h isin $1) && ($2 == $me) { /mode $chan +e $mask($ial($me,1),2) | mode $chan +I $mask($ial($me,1),2) }
  if (%ck13 == on) && (%ck14 == on) && (+q isin $1) && ($2 == $me) { /mode $chan +e $mask($ial($me,1),2) | mode $chan +I $mask($ial($me,1),2) }
  if (%ck21 == on) && (%ck14 == on) && (+a isin $1) && ($2 == $me) { /mode # +e $me | /mode # +I $me }
  if (%ck21 == on) && (%ck14 == on) && (+o isin $1) && ($2 == $me) { /mode # +e $me | /mode # +I $me }
  if (%ck21 == on) && (%ck14 == on) && (+h isin $1) && ($2 == $me) { /mode # +e $me | /mode # +I $me }
  if (%ck21 == on) && (%ck14 == on) && (+q isin $1) && ($2 == $me) { /mode # +e $me | /mode # +I $me }
  if (%ck22 == on) && (%ck14 == on) && (+a isin $1) && ($2 == $me) { /mode $chan +e $mask($ial($me,1),3) | /mode $chan +I $mask($ial($me,1),3) }
  if (%ck22 == on) && (%ck14 == on) && (+o isin $1) && ($2 == $me) { /mode $chan +e $mask($ial($me,1),3) | /mode $chan +I $mask($ial($me,1),3) }
  if (%ck22 == on) && (%ck14 == on) && (+h isin $1) && ($2 == $me) { /mode $chan +e $mask($ial($me,1),3) | /mode $chan +I $mask($ial($me,1),3) }
  if (%ck22 == on) && (%ck14 == on) && (+q isin $1) && ($2 == $me) { /mode $chan +e $mask($ial($me,1),3) | /mode $chan +I $mask($ial($me,1),3) }
  if (%ck14 == on) && (%ck24 == on) && (-e isin $1) && (%ck21 == on) && ($me isop $chan) { /mode # +e $me }
  if (%ck14 == on) && (%ck24 == on) && (-e isin $1) && (%ck13 == on) && ($me isop $chan) { /mode $chan +e $mask($ial($me,1),2) }
  if (%ck14 == on) && (%ck24 == on) && (-e isin $1) && (%ck22 == on) && ($me isop $chan) { /mode $chan +e $mask($ial($me,1),3) }
  if (%ck14 == on) && (%ck24 == on) && (-I isin $1) && (%ck21 == on) && ($me isop $chan) { /mode # +I $me }
  if (%ck14 == on) && (%ck24 == on) && (-I isin $1) && (%ck13 == on) && ($me isop $chan) { /mode $chan +I $mask($ial($me,1),2) }
  if (%ck14 == on) && (%ck24 == on) && (-I isin $1) && (%ck22 == on) && ($me isop $chan) { /mode $chan +I $mask($ial($me,1),3) }
  if (%ck14 == on) && (%ck24 == on) && (+i isincs $1) && (%ck21 == on) && ($me isop $chan) { /mode # +I $me }
  if (%ck14 == on) && (%ck24 == on) && (+i isincs $1) && (%ck13 == on) && ($me isop $chan) { /mode $chan +I $mask($ial($me,1),2) }
  if (%ck14 == on) && (%ck24 == on) && (+i isincs $1) && (%ck22 == on) && ($me isop $chan) { /mode $chan +I $mask($ial($me,1),3) }
}


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
