;remote7
alias Tp`ye`aitdir { var %aslanalper = $numtok($2,44)
  while (%aslanalper) {
    var %aposh = $iif($did($1,$gettok($2,%aslanalper,44)).state == 1,Acik,Kapali)
    did -ra $1 $gettok($2,%aslanalper,44) $did($1,$gettok($2,%aslanalper,44)) %aposh
    dec %aslanalper
  }
}
alias _v { did -ra $dname $2 $3- $iif($1 = 1,Acik,Kapali) }
on 1:dialog:admin:*:*: {
  if ($devent == init) {
    if (%away == ON) { did -c admin 989 }
    if (%away == OFF)  { did -c admin 988 }
    if (%swear == ON) { did -c admin 2 }
    if (%repeat == ON) { did -c admin 3 }
    if (%flood == ON) { did -c admin 4 }
    if (%capskick == ON) { did -c admin 5 }
    if (%advertise == ON) { did -c admin 6 }
    if (%badnick == ON) { did -c admin 7 }
    if (%noticepro == ON) { did -c admin 8 }
    if (%color == ON) { did -c admin 9 }
    if (%uzunyazi == ON) { did -c admin 919 }
    if (%joinpart == on) { did -c admin 920 }
    if (%deop == ON) { did -c admin 17 }
    if (%kickprot == ON) { did -c admin 18 }
    if (%ping == ON) { did -c admin 65 }
    if (%Nopm == +) { did -c admin 655 }
    if (%nickuyaran == ON) { did -c admin 767 }
    if (%sexi1 == ON) { did -c admin 19 }
    if (%pfloodprot == ON) { did -c admin 20 }
    if (%nicktasmasi == ON) { did -c admin 634 }
    if (%nickpass == ON) { did -c admin 555 }
    if (%ip.ban == ON) { did -c admin 349 }
    if (%clonetespit == ON) { did -c admin 632 }
    if (%isteyeneping == ON) { did -c admin 629 }
    if (%cafeici == ON) { did -c admin 631 }
    did -a admin 54 %awaymsg
    did -a admin 61 %idletime2
    did -a admin 59 %awnick
    did -a admin 963 [1]  nick!*@*
    did -a admin 963 [2]  *!*@ip.ban
    did -a admin 963 [3]  *!*ident@*.ban
    if (%setawnick == ON) { did -c admin 58 }
    if (%autoaw == ON) { did -c admin 60 }
    if (%awdisplay == ON) { did -c admin 57 } 
    if (%opthnks == ON) { did -c admin 68 }
    if (%voicethnks == ON) { did -c admin 70 }
    if (%extimestamp == ON) { did -c admin 66 }
    if (%pmlog == ON) { did -c admin 117 }
    if (%showsplit == ON) { did -c admin 118 }
    did -a admin 69 %opmsg
    did -a admin 556 %nickpass1
    did -a admin 71 %voicemsg
    did -a admin 80 %bgtheme
    Tp`ye`aitdir $dname 919,920,2,3,4,5,6,7,8,9
  if (%Bantype == $null) { %Bantype = 107 | %bantype.sel = $gettok($did(963,%Bantype),2,32) } | did -c admin 963 %Bantype  }
  if ($did = 107) { %Bantype = $did(963).sel | %bantype.sel = $gettok($did(963,%Bantype),2,32) | %Bantype2 = %Bantype
  }
  if ($did == 989) { if (%away == OFF) { if (%away == ON) { zaten awaysin } | dsaway | $lcheck  } }
  if ($did == 988) {  if (%away == ON) { if (%away == OFF) { zaten away degilsin } | dsback | halt  } }

  if ($devent == sclick) && ($did == 2) {
    if (%swear == ON) { /set %swear OFF | echo -a 0,2 Kufur Korumasi Kapali | _v 0 2 Kufur Kick | if ($dialog(pref.swear)) { dialog -x pref.swear } | halt }
    if (%swear == OFF) { /set %swear ON | echo -a 0,2 Kufur Korumasi Acik | _v 1 2 Kufur Kick | dialog -m pref.swear pref.swear | halt }
  }
  if ($devent == sclick) && ($did == 3) {
    if (%repeat == ON) { /set %repeat OFF | echo -a 0,2 Tekrar Korumasi Kapali | _v 0 3 Tekrar Kick | if ($dialog(pref.repeat)) { dialog -x pref.repeat } | halt }
    if (%repeat == OFF) { /set %repeat ON | echo -a 0,2 Tekrar Korumasi Acik | _v 1 3 Tekrar Kick | dialog -m pref.repeat pref.repeat | halt }
  }
  if ($devent == sclick) && ($did == 4) {
    if (%flood == ON) { /set %flood OFF | echo -a 0,2 Flood Korumasi Kapali | _v 0 4 Flood Kick | if ($dialog(pref.flood)) { dialog -x pref.flood } | halt }
    if (%flood == OFF) { /set %flood ON | echo -a 0,2 Flood Korumasi Acik | _v 1 4 Flood Kick | dialog -m pref.flood pref.flood | halt }
  }
  if ($devent == sclick) && ($did == 5) {
    if (%capskick == ON) { /set %capskick OFF | echo -a 0,2 Caps Korumasi Kapali | _v 0 5 Caps Kick | if ($dialog(pref.caps)) { dialog -x pref.caps } | halt }
    if (%capskick == OFF) { /set %capskick ON | echo -a 0,2 Caps Korumasi Acik | _v 1 5 Caps Kick | dialog -m pref.caps pref.caps | halt }
  }
  if ($devent == sclick) && ($did == 6) {
    if (%advertise == ON) { /set %advertise OFF | echo -a 0,2 Reklam Korumasi Kapali | _v 0 6 Reklam Kick | if ($dialog(pref.advertise)) { dialog -x pref.advertise } | halt }
    if (%advertise == OFF) { /set %advertise ON | echo -a 0,2 Reklam Korumasi Acik | _v 1 6 Reklam Kick | dialog -m pref.advertise pref.advertise | halt }
  }
  if ($devent == sclick) && ($did == 7) {
    if (%badnick == ON) { /set %badnick OFF | echo -a 0,2 Bad Nick Korumasi Kapali | _v 0 7 Bad Nick Kick | if ($dialog(pref.badnick)) { dialog -x pref.badnick } | halt }
    if (%badnick == OFF) { /set %badnick ON | echo -a 0,2 Bad Nick Korumasi Acik | _v 1 7 Bad Nick Kick | dialog -m pref.badnick pref.badnick | halt }
  }
  if ($devent == sclick) && ($did == 8) {
    if (%Noticepro == ON) { /set %Noticepro OFF | .echo -a 0,2 Notice Korumasi Kapali | _v 0 8 Notice Kick | if ($dialog(pref.noticepro)) { dialog -x pref.noticepro } | halt }
    if (%Noticepro == OFF) { /set %Noticepro ON | .echo -a 0,2 Notice Korumasi Acik | _v 1 8 Notice Kick | dialog -m pref.Noticepro pref.Noticepro | halt }
  }
  if ($devent == sclick) && ($did == 9) {
    if (%color == ON) { /set %color OFF | echo -a 0,2 Renk Korumasi Kapali | _v 0 9 Renk Kick | if ($dialog(pref.color)) { dialog -x pref.color } | halt }
    if (%color == OFF) { /set %color ON | echo -a 0,2 Renk Korumasi Acik | _v 1 9 Renk Kick | dialog -m pref.color pref.color | halt }
  }
  if ($devent == sclick) && ($did == 555) {
    if (%nickpass == ON) { /set %nickpass OFF | halt }
    if (%nickpass == OFF) { /set %nickpass ON | halt }
  }
  if ($devent == sclick) && ($did == 919) {
    if (%uzunyazi == ON) { /set %uzunyazi OFF | echo -a 0,2 Uzun Yazi Korumasi Kapali | _v 0 919 Uzun Yazi Kick | if ($dialog(pref.uzun)) { dialog -x pref.uzun } | halt }
    if (%uzunyazi == OFF) { /set %uzunyazi ON | echo -a 0,2 Uzun Yazi Korumasi Acik | _v 1 919 Uzun Yazi Kick | dialog -m pref.uzun pref.uzun | halt }
  }
  if ($devent == sclick) && ($did == 920) {
    if (%joinpart == ON) { /set %joinpart OFF | echo -a 0,2 Join Flood Korumasi Kapali | _v 0 920 Join Flood Kick | .disable #joinpart | if ($dialog(pref.joinpart)) { dialog -x pref.joinpart } | halt }
    if (%joinpart == OFF) { /set %joinpart ON | echo -a 0,2 Join Flood Korumasi Acik | _v 1 920 Join Flood Kick | .enable #joinpart | dialog -m pref.joinpart  pref.joinpart  | halt }
  }
  if ($devent == sclick) && ($did == 17) {
    if (%deop == ON) { /set %deop OFF | echo -a 0,2 Deop Korumasi Kapali | if ($dialog(pref.deop)) { dialog -x pref.deop } | halt }
    if (%deop == OFF) { /set %deop  ON | echo -a 0,2 Deop Korumasi Acik | dialog -m pref.deop  pref.deop  | halt }
  }
  if ($devent == sclick) && ($did == 18) {
    if (%kickprot == ON) { /set %kickprot OFF | echo -a 0,2 KickBan Korumasi Kapali | halt }
    if (%kickprot == OFF) { /set %kickprot  ON | echo -a 0,2 KickBan Korumasi Acik | halt }
  }
  if ($did == 19) {
    if (%sexi1 == ON) { /set %sexi1 OFF | /echo -a 0,2 ozele Kufur Korumasi Kapali | halt }
    if (%sexi1 == OFF) { /set %sexi1 ON | /echo -a  0,2 ozele Kufur Korumasi Acik | halt }
  }
  if ($devent == sclick) && ($did == 767) {
    if (%nickuyaran == ON) { /set %nickuyaran OFF | /echo -a 0,2 Nick Uyarici Kapali | .disable #Nickuyaran | halt }
    if (%nickuyaran == OFF) { /set %nickuyaran ON | /echo -a  0,2 Nick Uyarici  Acik | .enable #Nickuyaran | halt }
  }
  if ($devent == sclick) && ($did == 65) {
    if (%ping == ON) { /set %ping OFF | echo -a 0,2 Dk da Bir Pingle Kapali | .timer153 off | halt }
    if (%ping == OFF) { /set %ping ON | echo -a 0,2 Dk da Bir Pingle Acik | .timer153 0 60 .ctcp $me ping | halt }
  }
  if ($devent == sclick) && ($did == 20) {
    if (%pfloodprot == ON) { /set %pfloodprot OFF | echo -a 0,2 ozele Flood Korumasi Kapali | if ($dialog(ozeleflood)) { dialog -x ozeleflood } | halt }
    if (%pfloodprot == OFF) { /set %pfloodprot ON | echo -a 0,2 ozele Flood Korumasi Acik | dialog -m ozeleflood  ozeleflood  | halt }
  }
  if ($devent == sclick) && ($did == 634) {
    if (%nicktasmasi == ON) { /set %nicktasmasi OFF | echo -a 0,2 ozele Nick Tasmasi Kapali | if ($dialog(nicktasma)) { dialog -x nicktasma } | halt }
    if (%nicktasmasi == OFF) { /set %nicktasmasi ON | echo -a 0,2 ozele Nick Tasmasi Acik | dialog -m nicktasma  nicktasma  | halt }
  }
  if ($devent == sclick) && ($did == 655) {
    if (%nopm == +) { /set %nopm - |  echo -a 0,2 ozele Mesaj Korumasi Kapatildi | halt }
    if (%nopm == -) { /set %nopm + | if (%away != ON) { echo -a 0,2 Artik ozelinize mesaj gelmeyecek } | halt }
  }
  if ($devent == sclick) && ($did == 349) {
    if (%ip.ban == ON) { /set %ip.ban OFF | /echo -a 0,2 Banlanan İp`yi Kickle Kapali | halt }
    if (%ip.ban == OFF) { /set %ip.ban ON | /echo -a 0,2 Banlanan İp`yi Kickle Acik | halt }
  }
  if ($devent == sclick) && ($did == 632) {
    if (%clonetespit == ON) { /set %clonetespit OFF | /echo -a 0,2 Clone Uyarici Kapali | halt }
    if (%clonetespit == OFF) { /set %clonetespit ON | /echo -a 0,2 Clone Uyarici Acik | halt }
  }
  if ($devent == sclick) && ($did == 629) {
    if (%isteyeneping == ON) { /set %isteyeneping OFF | /echo -a 0,2 İsteyene Ping Kapali | halt }
    if (%isteyeneping == OFF) { /set %isteyeneping ON | /echo -a 0,2 İsteyene Ping Acik | halt }
  }
  if ($devent == sclick) && ($did == 631) {
    if (%cafeici == ON) { /set %cafeici OFF | /echo -a 0,2 Cafe İci Yazismayi Engelle Kapali | halt }
    if (%cafeici == OFF) { /set %cafeici ON | /echo -a 0,2 Cafe İci Yazismayi Engelle Acik | halt }
  }

  if ($devent == sclick) && ($did == 601) { dialog -m yardim1 yardim1 }
  if ($devent == sclick) && ($did == 23) { dialog -m yardim23 yardim23 }
  if ($devent == sclick) && ($did == 25) { dialog -m yardimaa25 yardima25 }
  if ($devent == sclick) && ($did == 26) { dialog -m yardima26 yardima26 }
  if ($devent == sclick) && ($did == 27) { dialog -m yardima27 yardima27 }
  if ($devent == sclick) && ($did == 602) { dialog -m yardim2 yardim2 }
  if ($devent == sclick) && ($did == 603) { dialog -m yardim3 yardim3 }
  if ($devent == sclick) && ($did == 604) { dialog -m yardim4 yardim4 }
  if ($devent == sclick) && ($did == 605) { dialog -m yardim5 yardim5 }
  if ($devent == sclick) && ($did == 606) { dialog -m yardim6 yardim6 }
  if ($devent == sclick) && ($did == 607) { dialog -m yardim7 yardim7 }
  if ($devent == sclick) && ($did == 608) { dialog -m yardim8 yardim8 }
  if ($devent == sclick) && ($did == 609) { dialog -m yardim9 yardim9 }
  if ($devent == sclick) && ($did == 610) { dialog -m yardim10 yardim10 }
  if ($devent == sclick) && ($did == 611) { dialog -m yardim11 yardim11 }
  if ($devent == sclick) && ($did == 612) { dialog -m yardim12 yardim12 }
  if ($devent == sclick) && ($did == 613) { dialog -m yardim13 yardim13 }
  if ($devent == sclick) && ($did == 614) { dialog -m yardim14 yardim14 }
  if ($devent == sclick) && ($did == 615) { dialog -m yardim15 yardim15 }
  if ($devent == sclick) && ($did == 616) { dialog -m yardim16 yardim16 }
  if ($devent == sclick) && ($did == 617) { dialog -m yardim17 yardim17 }
  if ($devent == sclick) && ($did == 618) { dialog -m yardim18 yardim18 }
  if ($devent == sclick) && ($did == 619) { dialog -m yardim19 yardim19 }
  if ($devent == sclick) && ($did == 620) { dialog -m yardim20 yardim20 }
  if ($devent == sclick) && ($did == 621) { dialog -m yardim21 yardim21 }
  if ($devent == sclick) && ($did == 622) { dialog -m yardim22 yardim22 }
  if ($devent == sclick) && ($did == 624) { dialog -m yardim24 yardim24 }
  if ($devent == sclick) && ($did == 625) { dialog -m yardim25 yardim25 }
  if ($devent == sclick) && ($did == 628) { dialog -m yardim628 yardim628 }
  if ($devent == sclick) && ($did == 630) { dialog -m yardim630 yardim630 }
  if ($devent == sclick) && ($did == 636) { dialog -m yardim630 yardim636 }
  if ($devent == sclick) && ($did == 635) { dialog -m yardim632 yardim635 }
  if ($devent == sclick) && ($did == 768) { dialog -m yardim32 yardim32 }
  if ($devent == sclick) && ($did == 964) { dialog -m yardim33 yardim33 }
  if ($devent == sclick) && ($did == 771) { dialog -m yardim34 yardim34 }
  if ($devent == sclick) && ($did == 773) { dialog -m yardim35 yardim35 }
  if ($devent == sclick) && ($did == 626) { if ($dialog(logs)) { echo -a 0,2 Kayit Listesi Zaten Acik Zaten Acik | halt } | logs }
  if ($devent == sclick) && ($did == 769) { if ($dialog(yazz)) { echo -a 9,2 Nick Kontrol Menusu Zaten Acik | halt } | .timer 1 0 /yazz }
  if ($devent == sclick) && ($did == 770) { if ($dialog(Ozlem-Fm)) { echo -a 0,2 Radyo Zaten Acik | halt } | j Radyo | Ozlem-Fm www.OzlemCafe.Com/radyo }
  if ($devent == sclick) && ($did == 772) { if ($dialog(alarm)) { echo -a 0,2 Alarm Zaten Acik | halt } | alarm }
  if ($devent == sclick) && ($did == 22) { if ($dialog(cpanel)) { echo -a 0,2 Araclar Zaten Acik | halt } | cpanel }
  if ($devent == sclick) && ($did == 21) { if ($dialog(qblock)) { echo -a 0,2 ozel Kapatma Sistemi Zaten Acik | halt } | dialog -m qblock qblock }
  if ($devent == sclick) && ($did == 15) { if ($dialog(qblock3)) { echo -a 0,2VIP Listeniz Zaten Acik | halt } | dialog -m qblock3 qblock3 }
  if ($devent == sclick) && ($did == 11) { if ($dialog(ignoreListDialog)) { echo -a 0,2İgnore Listeniz Zaten Acik | halt } | dialog -m ignoreListDialog ignoreListDialog }
  if ($devent == sclick) && ($did == 24) { if ($dialog(Kickset)) { echo -a 0,2 Kick Mesajlari Zaten Acik | halt } | dialog -m kickset kickset }
  if ($devent == sclick) && ($did == 43) { /set %sex Bay }
  if ($devent == sclick) && ($did == 44) { /set %sex Bayan }
  if ($devent == sclick) && ($did == 1161) { if ($dialog(_blacklist)) { echo -a 0,2 Kara Liste Zaten Acik | halt } | dialog -m _blacklist _blacklist }
  if ($devent == sclick) && ($did == 766) { if ($dialog(koruma_)) { echo -a 0,2 ozele Reklam Korumasi Zaten Acik | halt } | dialog -m koruma_ koruma_ }
  if ($devent == sclick) && ($did == 500) { run www.OzlemCafe.Com }
  if ($devent == sclick) && ($did == 501) { run www.OzlemCafem.Com/Forum }
  if ($devent == sclick) && ($did == 502) { run www.Webinsaat.com }
  if ($devent == sclick) && ($did == 503) { run www.turkcell.com.tr }
  if ($devent == sclick) && ($did == 504) { run www.vodafone.com.tr }
  if ($devent == sclick) && ($did == 505) { run www.hotmail.com }
  if ($devent == sclick) && ($did == 506) { run www.gmail.com }
  if ($devent == sclick) && ($did == 507) { run http://mail.yahoo.com }
  if ($devent == sclick) && ($did == 508) { run www.google.com }
  if ($devent == sclick) && ($did == 509) { run http://search.msn.com }
  if ($devent == sclick) && ($did == 510) { run www.yahoo.com }
  if ($devent == sclick) && ($did == 511) { run www.alltheweb.com }
  if ($devent == sclick) && ($did == 512) { run www.altavista.com }
  if ($devent == sclick) && ($did == 513) { run www.netbul.com }
  if ($devent == sclick) && ($did == 514) { run www.turk.net }
  if ($devent == sclick) && ($did == 515) { run www.superonline.com }
  if ($devent == sclick) && ($did == 516) { run www.showtv.com.tr }
  if ($devent == sclick) && ($did == 517) { run www.kanald.com.tr }
  if ($devent == sclick) && ($did == 518) { run www.atv.com.tr }
  if ($devent == sclick) && ($did == 519) { run www.trt.net.tr }
  if ($devent == sclick) && ($did == 520) { run www.ntv.com.tr }
  if ($devent == sclick) && ($did == 521) { run www.cnnturk.com }
  if ($devent == sclick) && ($did == 522) { run www.skyturk.tv }
  if ($devent == sclick) && ($did == 523) { run www.startv.com.tr }
  if ($devent == sclick) && ($did == 524) { run www.showradyo.com.tr }
  if ($devent == sclick) && ($did == 525) { run www.radyod.com }
  if ($devent == sclick) && ($did == 526) { run www.metrofm.com.tr }
  if ($devent == sclick) && ($did == 527) { run www.superfm.com.tr }
  if ($devent == sclick) && ($did == 528) { run www.alemfm.com }
  if ($devent == sclick) && ($did == 529) { run www.powerfm.com.tr }
  if ($devent == sclick) && ($did == 530) { run www.radyo5.com.tr }
  if ($devent == sclick) && ($did == 531) { run www.istanbulfm.com.tr }
  if ($devent == sclick) && ($did == 532) { run www.vakit.com.tr }
  if ($devent == sclick) && ($did == 533) { run www.Yenisafak.com.tr }
  if ($devent == sclick) && ($did == 534) { run www.sabah.com.tr }
  if ($devent == sclick) && ($did == 535) { run www.aksam.com.tr }
  if ($devent == sclick) && ($did == 536) { run www.radikal.com.tr }
  if ($devent == sclick) && ($did == 537) { run www.zaman.com.tr }
  if ($devent == sclick) && ($did == 538) { run www.fanatik.com.tr }
  if ($devent == sclick) && ($did == 539) { run www.milliyet.com.tr }
  if ($devent == sclick) && ($did == 981) { run www.trt.net.tr }
  if ($devent == sclick) && ($did == 34) {
  }
  if ($devent == sclick) && ($did == 60) {
    if (%autoaw == ON) { /set %autoaw OFF | .timerad off | halt }
    if (%autoaw == OFF) { /set %autoaw ON | /autoawset | halt }
  }
  if ($devent == sclick) && ($did == 58) {
    if (%setawnick == ON) { /set %setawnick OFF | halt }
    if (%setawnick == OFF) { /set %setawnick ON | halt }
  }
  if ($devent == sclick) && ($did == 57) {
    if (%awdisplay == ON) { /set %awdisplay OFF | halt }
    if (%awdisplay == OFF) { /set %awdisplay ON | halt }
  }

  if ($devent == sclick) && ($did == 66) {
    if (%extimestamp == ON) { /set %extimestamp OFF | .timestamp off | /echo -a 0,2 Saat Goster Kapali | halt }
    if (%extimestamp == OFF) { /set %extimestamp ON | .timestamp on | /echo -a 0,2 Saat Goster Acik | halt }
  }
  if ($devent == sclick) && ($did == 64) {
    if (%sfx == ON) { /set %sfx OFF | halt }
    if (%sfx == OFF) { /set %sfx ON | halt }
  }
  if ($devent == sclick) && ($did == 68) {
    if (%opthnks == ON) { /set %opthnks OFF | halt }
    if (%opthnks == OFF) { /set %opthnks ON | halt }
  }
  if ($devent == sclick) && ($did == 70) {
    if (%voicethnks == ON) { /set %voicethnks OFF | halt }
    if (%voicethnks == OFF) { /set %voicethnks ON | halt }
  }
  if ($devent == sclick) && ($did == 82) { theme }
  if ($did == 117) {
    if (%pmlog == ON) { /set %pmlog OFF | halt }
    if (%pmlog == OFF) { /set %pmlog ON | halt }
  }
  if ($devent == edit) {
    if ($did == 54) { set %awaymsg $did(54) }
    if ($did == 61) { set %idletime2 $did(61) | /autoawset }
    if ($did == 59) { set %awnick $did(59) }
    if ($did == 556) { set %nickpass1 $did(556) }
    if ($did == 69) { set %opmsg $did(69) } 
    if ($did == 71) { set %voicemsg $did(71) } 
  }
}
