dialog kanalkoru {
  option dbu
  title "«« x1»» Kanal Korumaları"
  size -1 -1 137 130
  button "Tamam" 1, 98 108 30 15, ok
  check "Reklam Koruması" 2, 15 10 50 8
  check "O.Reklam Koruması" 3, 15 25 50 8
  check "O.Kufur Koruması" 4, 15 40 50 8
  check "Kufur Koruması" 5, 15 55 55 8
  check "Flood Koruması" 6, 15 70 50 8
  check "Dcc Koruması" 7, 15 85 50 8
  check "N.Flood Koruması" 8, 75 10 50 8
  check "J.Flood Koruması" 9, 75 25 55 8
  check "Caps Koruması" 10, 75 40 45 8
  check "Badnick Koruması" 11, 75 55 50 8
  check "KotuIdent Koruması" 12, 75 70 50 8
  check "Banlanani Kickle" 13, 75 85 60 8
  box "Kanal Korumaları" 14, 8 2 122 100 
  Text "«« x1»» " 15, 30 110 45 15
}
alias kanalkoru dialog -m kanalkoru kanalkoru
on 1:dialog:kanalkoru:sclick:*:{
  if ($did(2).state == 1) { .enable #adcvh } | else { .disable #adcvh }
  if ($did(3).state == 1) { .enable #ozel } | else { .disable #ozel  }
  if ($did(4).state == 1) { .enable #ozelekufur } | else { .disable #ozelekufur  }
  if ($did(5).state == 1) { .enable #swear } | else { .disable #swear }
  if ($did(6).state == 1) { .enable #Flood } | else { .disable #Flood  }
  if ($did(7).state == 1) { .enable #exepro } | else { .disable #exepro  }
  if ($did(8).state == 1) { .enable #nick } | else { .disable #nick  }
  if ($did(9).state == 1) { .enable #jflood } | else { .disable #jflood  }
  if ($did(10).state == 1) { .enable #caps } | else { .disable #caps  }
  if ($did(11).state == 1) { .enable #Bnick } | else { .disable #Bnick }
  if ($did(12).state == 1) { .enable #Bdent } | else { .disable #Bdent }
  if ($did(13).state == 1) { .enable #BanE } | else { .disable #BanE }
}
on 1:dialog:kanalkoru:init:0:{
  if ($group(#adcvh) == on) { did -c kanalkoru 2 }
  if ($group(#ozel) == on) { did -c kanalkoru 3 }
  if ($group(#ozelekufur) == on) { did -c kanalkoru 4 }
  if ($group(#swear) == on) { did -c kanalkoru 5 }
  if ($group(#flood) == on) { did -c kanalkoru 6 }
  if ($group(#exepro) == on) { did -c kanalkoru 7 }
  if ($group(#nick) == on) { did -c kanalkoru 8 }
  if ($group(#jflood) == on) { did -c kanalkoru 9 }
  if ($group(#caps) == on) { did -c kanalkoru 10 }
  if ($group(#bnick) == on) { did -c kanalkoru 11 }
  if ($group(#bdent) == on) { did -c kanalkoru 12 }
  if ($group(#bane) == on) { did -c kanalkoru 13 }
}
;************************************************************************************************
dialog kisikoruma {
  option dbu
  title "«« x1»» Kişisel Korumaları"
  size -1 -1 150 75
  button "Tamam" 1, 63 50 22 16, ok
  check "Reklam Koruması" 2, 15 15 50 8
  check "Deop Koruması" 3, 15 30 48 8
  check "Kick Koruması" 4, 85 15 45 8
  check "Ban Koruması" 5, 85 30 45 8
  box "Kişisel Korumalar" 6, 5 5 140 40
  text "x1" 7, 10 55 40 10 
  text "pC`kOpAt" 8, 95 55 40 10 
}
alias kisikoruma dialog -m kisikoruma kisikoruma
on 1:dialog:kisikoruma:sclick:*:{
  if ($did(2).state == 1) { .enable #ozel } | else { .disable #ozel }
  if ($did(3).state == 1) { .enable #deops } | else { .disable #deops }
  if ($did(4).state == 1) { .enable #rekick } | else { .disable #rekick }
  if ($did(5).state == 1) { .enable #Bankoruma } | else { .disable #Bankoruma }
}
on 1:dialog:kisikoruma:init:0:{
  if ($group(#ozel) == on) { did -c kisikoruma 2 }
  if ($group(#deops) == on) { did -c kisikoruma 3 }
  if ($group(#rekick) == on) { did -c kisikoruma 4 }
  if ($group(#Bankoruma) == on) { did -c kisikoruma 5 }
}
