alias sifre {  
  if !$dialog(sifre) { .dialog -m sifre sifre }
  else { return } 
}
dialog sifre {
  title "..: SohbetSen Cafe :.."
  size -1 -1 117 100
  option dbu
  icon 55, 6 66 20 16, $mircdirSohbetSen\ico\8.ico 
  box Sifreli Bir Nick Sectiniz, 11, 2 3 113 62
  box "www.sohbetsen.org", 4, 7 11 104 38 , disable
  box , 99, 2 62 113 36

  edit "", 5, 56 20 51 12, style(pass) autohs
  edit "Şifrenizi Giriniz", 3, 11 20 45 12, read

  edit "Yeni Nick Giriniz", 16, 11 32 45 12, read
  edit "", 6, 56 32 51 12, autohs

  button "Tanımla", 1, 12 51 45 12,ok flat default
  button "İptal", 2, 62 51 45 12, cancel flat

  text "Şuan Sunucuya Bağlısınız " 14, 33 74 100 20
  text " $server $date $time " 28, 5 85 160 20, read
}

on 1:dialog:sifre:sclick:1: {
  if ($did(sifre,6)) && ($did(sifre,5)) %msg nickserv identify $did(sifre,6) $did(sifre,5) 
  if ($did(sifre,5)) %msg nickserv identify $did(sifre,5) 
  if ($did(sifre,6)) .nick $did(sifre,6)
}

on 1:DIALOG:sifre:*:*: {
  if ($devent == init) {
  { Splay $mircdirSohbetSen\sounds\Menu.wav }
    did -o sifre 28 3 $server - $date - $time 
  }
}

on *:NOTiCE:*NickServ*IDENTIFY*:?:{ if ($nick == NickServ) { sifre } }
on *:NOTiCE:*/msg*IDENTIFY*:?:{ if ($nick == NickServ) { sifre } }
on *:NOTiCE:*Gecersiz*sifre.*:?:{ if ($nick == NickServ) { if (%srf == 1) { bitir }
  else { sifre } }
}
on *:NOTiCE:*Password*incorrect.*:?:{ if ($nick == NickServ) { if (%srf == 1) { bitir } 
    else { 
  dialog -m sifre sifre } }
}

on *:NOTiCE:*DIKKAT*kesilecektir.*:?:{ if ($nick == NickServ) { dialog -x sifre sifre | sfrx } }

alias sfrx {
  if ($nick == NickServ) { .inc %srf | sifre }
}
alias bitir {
  unset %srf*
}

on ^*:OP:#:{
  if ($opnick == $me)  && ($nick != $me) {
    if ($nick != chanserv) { msg $chan $nick %optemsg %SohbetSen  }
    if ($nick == chanserv) { msg $chan $nick  %SohbetSen }
  } 
} 
on ^*:DEOP:#:{
  if ($opnick == $me)  && ($nick != $me) {
    if ($nick != chanserv) { msg $chan $nick %deoptemsg %SohbetSen  }
    if ($nick == chanserv) { msg $chan $nick  %SohbetSen }
  } 
} 

on ^*:VOICE:#:{
  if ($vnick == $me) &&  ($nick != $me)  {
    if ($nick != chanserv) { msg $chan $nick %votemsg  %SohbetSen  }
    if ($nick == chanserv) { msg $chan $nick  %SohbetSen }
  }
} 

on ^*:DEVOICE:#:{
  if ($vnick == $me) &&  ($nick != $me)  {
    if ($nick != chanserv) { msg $chan $nick %devotemsg  %SohbetSen  }
    if ($nick == chanserv) { msg $chan $nick  %SohbetSen }
  }
} 

#sesefect off

on 1:open:?:{ 
  if ($nick == $me) { halt }
  else { splay $mircdirSohbetSen\sounds\ao.wav | halt } 
}

on 1:join:#: {
  if ($nick != $me) { halt }
  else { splay $mircdirSohbetSen\sounds\join.wav | halt } 
}
on 1:part:#: {
  if ($nick != $me) { halt }
  else { splay $mircdirSohbetSen\sounds\part.wav | halt } 
}
on 1:voice:#: {
  if ($vnick != $me) { halt }
  else { splay $mircdirSohbetSen\sounds\voice.wav | halt } 
}
on 1:devoice:#: {
  if ($vnick != $me) { halt }
  else { splay $mircdirSohbetSen\sounds\devoice.wav | halt } 
}
on 1:op:#: {
  if ($opnick != $me) { halt }
  else { splay $mircdirSohbetSen\sounds\op.wav | halt } 
}
on 1:deop:#: {
  if ($opnick != $me) { halt }
  else { splay $mircdirSohbetSen\sounds\deop.wav | halt } 
}

on 1:connect:{ splay $mircdirSohbetSen\sounds\connect.wav }
on 1:disconnect:{ splay $mircdirSohbetSen\sounds\disconnect.wav }

on 1:kick:#: {
  if ($knick != $me) { halt }
  else { splay $mircdirSohbetSen\sounds\kick.wav | halt } 
}

#sesefect end
