alias f7 { if ($dialog(auto).title != $null) { dialog -v auto | halt }
  dialog -m auto auto
}

dialog auto {
  title "Auto Login"
  size -1 -1 340 292
  button "&OK",1,80 260 180 25,ok
  tab "NickServ",100,10 10 320 245
  tab "X",200
  tab "Q",400
  tab "C",600
  tab "Irix",300
  tab "Fondateur",500
  list 2,15 45 110 185,tab 100
  box "",3,130 40 190 180,tab 100
  text "Auto identification à Nickserv",4,140 52 170 13,center,tab 100
  icon 101,130 50 190 180,images\nickserv.jpg,center,tab 100
  check "Activer Auto-ID",102,20 232 95 13,tab 100
  text "Pseudo",11,140 97 60 13,tab 100
  text "Pass",21,140 122 60 13,tab 100
  edit "",31,200 95 110 20,autohs,tab 100
  edit "",41,200 120 110 20,autohs,pass,tab 100
  button "Utiliser ce pseudo",51,135 165 90 20,tab 100
  button "S'identifier",61,225 165 90 20,tab 100
  list 5,15 45 110 185,tab 200
  box "",6,130 40 190 180,tab 200
  text "Auto identification à X",7,140 52 170 13,center,tab 200
  icon 201,130 35 190 180,images\undernet.jpg,bottom,tab 200
  check "Activer Auto-ID",202,20 232 95 13,tab 200
  text "Pseudo",12,140 97 60 13,tab 200
  text "Pass",22,140 122 60 13,tab 200
  edit "",32,200 95 110 20, autohs,tab 200
  edit "",42, 200 120 110 20,autohs,pass,tab 200
  button "Utiliser ce pseudo",52,135 165 90 20,tab 200
  button "S'identifier",62,225 165 90 20,tab 200
  text "Salon 1:",33,15 65 40 14,right,tab 300
  text "Salon 2:",43,15 85 40 14,right,tab 300
  text "Salon 3:",53,15 105 40 14,right,tab 300
  text "Salon 4:",63,15 125 40 14,right,tab 300
  text "Salon 5:",73,15 145 40 14,right,tab 300
  text "Salon 6:",83,15 165 40 14,right,tab 300
  text "Salon 7:",93,15 185 40 14,right,tab 300
  text "Salon 8:",103,15 205 40 14,right,tab 300
  text "Salon 9:",113,15 225 40 14,right,tab 300
  edit "",133,60 60 80 20,autohs,tab 300
  edit "",143,60 80 80 20,autohs,tab 300
  edit "",153,60 100 80 20,autohs,tab 300
  edit "",163,60 120 80 20,autohs,tab 300
  edit "",173,60 140 80 20,autohs,tab 300
  edit "",183,60 160 80 20,autohs,tab 300
  edit "",193,60 180 80 20,autohs,tab 300
  edit "",203,60 200 80 20,autohs,tab 300
  edit "",213,60 220 80 20,autohs,tab 300
  button "Mot de passe",223,145 60 80 20,autohs, tab 300
  button "Mot de passe",233,145 80 80 20,autohs, tab 300
  button "Mot de passe",243,145 100 80 20,autohs, tab 300
  button "Mot de passe",253,145 120 80 20,autohs, tab 300
  button "Mot de passe",263,145 140 80 20,autohs, tab 300
  button "Mot de passe",273,145 160 80 20,autohs, tab 300
  button "Mot de passe",283,145 180 80 20,autohs, tab 300
  button "Mot de passe",293,145 200 80 20,autohs, tab 300
  button "Mot de passe",303,145 220 80 20,autohs, tab 300
  check "Salon 1",323,252 63 60 14,tab 300
  check "Salon 2",333,252 83 60 14,tab 300
  check "Salon 3",343,252 103 60 14,tab 300
  check "Salon 4",353,252 123 60 14,tab 300
  check "Salon 5",363,252 143 60 14,tab 300
  check "Salon 6",373,252 163 60 14,tab 300
  check "Salon 7",383,252 183 60 14,tab 300
  check "Salon 8",393,252 203 60 14,tab 300
  check "Salon 9",403,252 223 60 14,tab 300
  text "Ton Pseudo :",413,15 38 90 14,right,tab 300
  edit "",423,115 35 90 20,autohs,tab 300
  box "S'identifier sur",99,240 45 84 200,tab 300
  list 552,15 45 110 185,tab 400
  box "",553,130 40 190 180,tab 400
  text "Auto identification à Q",54,140 52 170 13,center,tab 400
  icon 501,130 35 190 180,images\q.jpg,bottom,tab 400
  check "Activer Auto-ID",502,20 232 95 13,tab 400
  text "Pseudo",511,140 97 60 13,tab 400
  text "Pass",521,140 122 60 13,tab 400
  edit "",531,200 95 110 20,autohs,tab 400
  edit "",541,200 120 110 20,autohs,pass,tab 400
  button "Utiliser ce pseudo",551,135 165 90 20,tab 400
  button "S'identifier",561,225 165 90 20,tab 400
  list 666,15 45 110 185,tab 600
  box "",667,130 40 190 180,tab 600
  text "Auto identification à C",604,140 52 170 13,center,tab 600
  icon 601,130 50 190 180,images\eclair.jpg,center,tab 600
  check "Activer Auto-ID",602,20 232 95 13,tab 600
  text "Pseudo",611,140 97 60 13,tab 600
  text "Pass",621,140 122 60 13,tab 600
  edit "",631,200 95 110 20,autohs,tab 600
  edit "",641,200 120 110 20,autohs,pass,tab 600
  button "Utiliser ce pseudo",651,135 165 90 20,tab 600
  button "S'identifier",661,225 165 90 20,tab 600
  list 24,15 45 110 185,tab 500
  box "",34,130 40 190 180,tab 500
  text "Auto identification à Chanserv",44,140 52 170 13,tab 500
  icon 401,130 35 190 180,images\found.jpg,bottom,tab 500
  check "Activer Auto-Fondateur",402,20 232 135 13,tab 500
  text "Canal (#...)",411,140 97 60 13,tab 500
  text "Pass",421,140 122 60 13,tab 500
  edit "",431,200 95 110 20,autohs,tab 500
  edit "",441,200 120 110 20,autohs,pass,tab 500
  button "Joindre ce canal",451,135 165 90 20,tab 500
  button "S'identifier",461,225 165 90 20,tab 500
}

on *:dialog:auto:init:*:{
  did -a auto 2 Général
  auto.did-h.all 101
  var %auto.loop.n 0
  while (%auto.loop.n < 10) {
    inc %auto.loop.n
    if (%auto.nick [ $+ [ %auto.loop.n ] ] == $null) { %auto.init.nick [ $+ [ %auto.loop.n ] ] = ¤¤ Pseudo [ $+ [ %auto.loop.n ] ] }
    else { %auto.init.nick [ $+ [ %auto.loop.n ] ] = %auto.nick [ $+ [ %auto.loop.n ] ]
      if (%auto.disable !== final-non) { %auto.disable = non }
    }
    if (%auto.pass [ $+ [ %auto.loop.n ] ] !== $null && %auto.disable !== final-non && %auto.disable == non) { %auto.disable = final-non }
    did -a auto 2 $chr(160) $+ . %auto.init.nick [ $+ [ %auto.loop.n ] ]
  }
  if (%auto.disable !== final-non) { .disable #auto | did -b auto 102 }
  else { did -e auto 102 }
  unset %auto.disable
  if ($group(#auto) == ON) { did -c auto 102 }
  did -f auto 2 Général
  did -a auto 5 Général
  Undernet.did-h.all 201
  var %Undernet.loop.n 0
  while (%Undernet.loop.n < 10) {
    inc %Undernet.loop.n
    if (%Undernet.nick [ $+ [ %Undernet.loop.n ] ] == $null) { %Undernet.init.nick [ $+ [ %Undernet.loop.n ] ] = ¤¤ Pseudo [ $+ [ %Undernet.loop.n ] ] }
    else { %Undernet.init.nick [ $+ [ %Undernet.loop.n ] ] = %Undernet.nick [ $+ [ %Undernet.loop.n ] ]
      if (%Undernet.disable !== final-non) { %Undernet.disable = non }
    }
    if (%Undernet.pass [ $+ [ %Undernet.loop.n ] ] !== $null && %Undernet.disable !== final-non && %Undernet.disable == non) { %Undernet.disable = final-non }
    did -a auto 5 $chr(160) $+ . %Undernet.init.nick [ $+ [ %Undernet.loop.n ] ]
  }
  if (%Undernet.disable !== final-non) { .disable #Undernet | did -b auto 202 }
  else { did -e auto 202 }
  unset %Undernet.disable
  if ($group(#Undernet) == ON) { did -c auto 202 }
  did -f auto 5 Général

  did -a auto 552 Général
  autoQ.did-h.all 501
  var %autoQ.loop.n 0
  while (%autoQ.loop.n < 10) {
    inc %autoQ.loop.n
    if (%autoQ.nick [ $+ [ %autoQ.loop.n ] ] == $null) { %autoQ.init.nick [ $+ [ %autoQ.loop.n ] ] = ¤¤ Pseudo [ $+ [ %autoQ.loop.n ] ] }
    else { %autoQ.init.nick [ $+ [ %autoQ.loop.n ] ] = %autoQ.nick [ $+ [ %autoQ.loop.n ] ]
      if (%autoQ.disable !== final-non) { %autoQ.disable = non }
    }
    if (%autoQ.pass [ $+ [ %autoQ.loop.n ] ] !== $null && %autoQ.disable !== final-non && %autoQ.disable == non) { %autoQ.disable = final-non }
    did -a auto 552 $chr(160) $+ . %autoQ.init.nick [ $+ [ %autoQ.loop.n ] ]
  }
  if (%autoQ.disable !== final-non) { .disable #autoQ | did -b auto 502 }
  else { did -e auto 502 }
  unset %autoQ.disable
  if ($group(#autoQ) == ON) { did -c auto 502 }
  did -f auto 552 Général
  did -a auto 666 Général
  Geeknode.did-h.all 601
  var %Geeknode.loop.n 0
  while (%Geeknode.loop.n < 10) {
    inc %Geeknode.loop.n
    if (%Geeknode.nick [ $+ [ %Geeknode.loop.n ] ] == $null) { %Geeknode.init.nick [ $+ [ %Geeknode.loop.n ] ] = ¤¤ Pseudo [ $+ [ %Geeknode.loop.n ] ] }
    else { %Geeknode.init.nick [ $+ [ %Geeknode.loop.n ] ] = %Geeknode.nick [ $+ [ %Geeknode.loop.n ] ]
      if (%Geeknode.disable !== final-non) { %Geeknode.disable = non }
    }
    if (%Geeknode.pass [ $+ [ %Geeknode.loop.n ] ] !== $null && %Geeknode.disable !== final-non && %Geeknode.disable == non) { %Geeknode.disable = final-non }
    did -a auto 666 $chr(160) $+ . %Geeknode.init.nick [ $+ [ %Geeknode.loop.n ] ]
  }
  if (%Geeknode.disable !== final-non) { .disable #Geeknode | did -b auto 602 }
  else { did -e auto 602 }
  unset %Geeknode.disable
  if ($group(#Geeknode) == ON) { did -c auto 602 }
  did -f auto 666 Général
  autoFounder.did-h.all 401
  var %autoFounder.loop.n 0
  while (%autoFounder.loop.n < 10) {
    inc %autoFounder.loop.n
    if (%autoFounder.canal [ $+ [ %autoFounder.loop.n ] ] == $null) { %autoFounder.init.canal [ $+ [ %autoFounder.loop.n ] ] = ¤¤ Canal %autoFounder.loop.n }
    else { %autoFounder.init.canal [ $+ [ %autoFounder.loop.n ] ] = %autoFounder.canal [ $+ [ %autoFounder.loop.n ] ]
      if (%autoFounder.disable !== final-non) { %autoFounder.disable = non }
    }
    if (%autoFounder.pass [ $+ [ %autoFounder.loop.n ] ] !== $null && %autoFounder.disable !== final-non && %autoFounder.disable == non) { %autoFounder.disable = final-non }
    did -a auto 24 $chr(160) $+ . %autoFounder.init.canal [ $+ [ %autoFounder.loop.n ] ]
  }
  if (%autoFounder.disable !== final-non) { .disable #autoFounder | did -b auto 402 }
  else { did -e auto 402 }
  unset %autoFounder.disable
  if ($group(#autoFounder) == ON) { did -c auto 402 }
  did -f auto 24 Général
  did -a auto 133 %chan_irix0
  did -a auto 143 %chan_irix1
  did -a auto 153 %chan_irix2
  did -a auto 163 %chan_irix3
  did -a auto 173 %chan_irix4
  did -a auto 183 %chan_irix5
  did -a auto 193 %chan_irix6
  did -a auto 203 %chan_irix7
  did -a auto 213 %chan_irix8
  did -a auto 423 %nick_irix
  if %on.join.auth1 == $true { did -c auto 323 }
  if %on.join.auth2 == $true { did -c auto 333 }
  if %on.join.auth3 == $true { did -c auto 343 }
  if %on.join.auth4 == $true { did -c auto 353 }
  if %on.join.auth5 == $true { did -c auto 363 }
  if %on.join.auth6 == $true { did -c auto 373 }
  if %on.join.auth7 == $true { did -c auto 383 }
  if %on.join.auth8 == $true { did -c auto 393 }
  if %on.join.auth9 == $true { did -c auto 403 }
}

on *:dialog:auto:edit:*:{
  var %auto.loop.n 0
  while (%auto.loop.n < 10) {
    inc %auto.loop.n
    if ($did(2,$did(2).sel) == $chr(160) $+ . %auto.init.nick [ $+ [ %auto.loop.n ] ]) {
      %auto.nick [ $+ [ %auto.loop.n ] ] = $did(31)
      %auto.pass [ $+ [ %auto.loop.n ] ] = $did(41)
      if (%auto.nick [ $+ [ %auto.loop.n ] ] == $null) { set %auto.nick [ $+ [ %auto.loop.n ] ] | did -b auto 41,51,61 }
      else { did -e auto 41,51 }
      if (%auto.pass [ $+ [ %auto.loop.n ] ] == $null) { set %auto.pass [ $+ [ %auto.loop.n ] ] | did -b auto 61 }
      else { did -e auto 61 }
    }
    if (%auto.nick [ $+ [ %auto.loop.n ] ] !== $null && %auto.disable !== final-non) { %auto.disable = non }
    if (%auto.pass [ $+ [ %auto.loop.n ] ] == $null && %auto.disable !== final-non && %auto.disable == non) { %auto.disable = final-non }
  }
  if (%auto.disable !== final-non) { .disable #auto | did -ub auto 102 }
  else { did -e auto 102 }
  unset %auto.disable
  var %Undernet.loop.n 0
  while (%Undernet.loop.n < 10) {
    inc %Undernet.loop.n
    if ($did(5,$did(5).sel) == $chr(160) $+ . %Undernet.init.nick [ $+ [ %Undernet.loop.n ] ]) {
      %Undernet.nick [ $+ [ %Undernet.loop.n ] ] = $did(32)
      %Undernet.pass [ $+ [ %Undernet.loop.n ] ] = $did(42)
      if (%Undernet.nick [ $+ [ %Undernet.loop.n ] ] == $null) { set %Undernet.nick [ $+ [ %Undernet.loop.n ] ] | did -b auto 42,52,62 }
      else { did -e auto 42,52 }
      if (%Undernet.pass [ $+ [ %Undernet.loop.n ] ] == $null) { set %Undernet.pass [ $+ [ %Undernet.loop.n ] ] | did -b auto 62 }
      else { did -e auto 62 }
    }
    if (%Undernet.nick [ $+ [ %Undernet.loop.n ] ] !== $null && %Undernet.disable !== final-non) { %Undernet.disable = non }
    if (%Undernet.pass [ $+ [ %Undernet.loop.n ] ] == $null && %Undernet.disable !== final-non && %Undernet.disable == non) { %Undernet.disable = final-non }
  }
  if (%Undernet.disable !== final-non) { .disable #Undernet | did -ub auto 202 }
  else { did -e auto 202 }
  unset %Undernet.disable
  var %autoQ.loop.n 0
  while (%autoQ.loop.n < 10) {
    inc %autoQ.loop.n
    if ($did(552,$did(552).sel) == $chr(160) $+ . %autoQ.init.nick [ $+ [ %autoQ.loop.n ] ]) {
      %autoQ.nick [ $+ [ %autoQ.loop.n ] ] = $did(531)
      %autoQ.pass [ $+ [ %autoQ.loop.n ] ] = $did(541)
      if (%autoQ.nick [ $+ [ %autoQ.loop.n ] ] == $null) { set %autoQ.nick [ $+ [ %autoQ.loop.n ] ] | did -b auto 541,551,561 }
      else { did -e auto 541,551 }
      if (%autoQ.pass [ $+ [ %autoQ.loop.n ] ] == $null) { set %autoQ.pass [ $+ [ %autoQ.loop.n ] ] | did -b auto 561 }
      else { did -e auto 561 }
    }
    if (%autoQ.nick [ $+ [ %autoQ.loop.n ] ] !== $null && %autoQ.disable !== final-non) { %autoQ.disable = non }
    if (%autoQ.pass [ $+ [ %autoQ.loop.n ] ] == $null && %autoQ.disable !== final-non && %autoQ.disable == non) { %autoQ.disable = final-non }
  }
  if (%autoQ.disable !== final-non) { .disable #autoQ | did -ub auto 502 }
  else { did -e auto 502 }
  unset %autoQ.disable
  var %Geeknode.loop.n 0
  while (%Geeknode.loop.n < 10) {
    inc %Geeknode.loop.n
    if ($did(666,$did(666).sel) == $chr(160) $+ . %Geeknode.init.nick [ $+ [ %Geeknode.loop.n ] ]) {
      %Geeknode.nick [ $+ [ %Geeknode.loop.n ] ] = $did(631)
      %Geeknode.pass [ $+ [ %Geeknode.loop.n ] ] = $did(641)
      if (%Geeknode.nick [ $+ [ %Geeknode.loop.n ] ] == $null) { set %Geeknode.nick [ $+ [ %Geeknode.loop.n ] ] | did -b auto 641,651,661 }
      else { did -e auto 641,651 }
      if (%Geeknode.pass [ $+ [ %Geeknode.loop.n ] ] == $null) { set %Geeknode.pass [ $+ [ %Geeknode.loop.n ] ] | did -b auto 661 }
      else { did -e auto 661 }
    }
    if (%Geeknode.nick [ $+ [ %Geeknode.loop.n ] ] !== $null && %Geeknode.disable !== final-non) { %Geeknode.disable = non }
    if (%Geeknode.pass [ $+ [ %Geeknode.loop.n ] ] == $null && %Geeknode.disable !== final-non && %Geeknode.disable == non) { %Geeknode.disable = final-non }
  }
  if (%Geeknode.disable !== final-non) { .disable #Geeknode | did -ub auto 602 }
  else { did -e auto 602 }
  unset %Geeknode.disable
  var %autoFounder.loop.n 0
  while (%autoFounder.loop.n < 10) {
    inc %autoFounder.loop.n
    if ($did(24,$did(24).sel) == $chr(160) $+ . %autoFounder.init.canal [ $+ [ %autoFounder.loop.n ] ]) {
      %autoFounder.canal [ $+ [ %autoFounder.loop.n ] ] = $did(431)
      %autoFounder.pass [ $+ [ %autoFounder.loop.n ] ] = $did(441)
      if (%autoFounder.canal [ $+ [ %autoFounder.loop.n ] ] == $null) { set %autoFounder.canal [ $+ [ %autoFounder.loop.n ] ] | did -b auto 441,451,461 }
      else { did -e auto 441,451 }
      if (%autoFounder.pass [ $+ [ %autoFounder.loop.n ] ] == $null) { set %autoFounder.pass [ $+ [ %autoFounder.loop.n ] ] | did -b auto 461 }
      else { did -e auto 461 }
    }
    if (%autoFounder.canal [ $+ [ %autoFounder.loop.n ] ] !== $null && %autoFounder.disable !== final-non) { %autoFounder.disable = non }
    if (%autoFounder.pass [ $+ [ %autoFounder.loop.n ] ] == $null && %autoFounder.disable !== final-non && %autoFounder.disable == non) { %autoFounder.disable = final-non }
  }
  if (%autoFounder.disable !== final-non) { .disable #autoFounder | did -ub auto 402 }
  else { did -e auto 402 }
  unset %autoFounder.disable
}

on *:dialog:auto:sclick:*:{
  if ($did == 1) { 
    unset %auto.init*
    unset %autoQ.init*
    unset %Undernet.init*
    unset %Geeknode.init*
    unset %autoFounder.init*
    if ($did(133) != $null) set %chan_irix0 $did(133)
    if ($did(143) != $null) set %chan_irix1 $did(143)
    if ($did(153) != $null) set %chan_irix2 $did(153)
    if ($did(163) != $null) set %chan_irix3 $did(163)
    if ($did(173) != $null) set %chan_irix4 $did(173)
    if ($did(183) != $null) set %chan_irix5 $did(183)
    if ($did(193) != $null) set %chan_irix6 $did(193)
    if ($did(203) != $null) set %chan_irix7 $did(203)
    if ($did(213) != $null) set %chan_irix8 $did(213)
    if ($did(423) != $null) set %nick_irix $did(423)
  }
  if ($did(2,$did(2).sel) == Général) { did -o auto 4 1 Auto identification à Nickserv | auto.did-h.all 101 }
  var %auto.loop.n 0
  while (%auto.loop.n < 10) {
    inc %auto.loop.n
    if ($did(2,$did(2).sel) == $chr(160) $+ . %auto.init.nick [ $+ [ %auto.loop.n ] ]) {
      did -o auto 4 1 ** Paramètres du pseudo %auto.loop.n **
      auto.did-h.all 11,21,31,41,51,61
      did -ra auto 31 %auto.nick [ $+ [ %auto.loop.n ] ]
      did -ra auto 41 %auto.pass [ $+ [ %auto.loop.n ] ]
      if (%auto.nick [ $+ [ %auto.loop.n ] ] == $null) { set %auto.nick [ $+ [ %auto.loop.n ] ] | did -b auto 41,51,61 }
      else { did -e auto 41,51 }
      if (%auto.pass [ $+ [ %auto.loop.n ] ] == $null) { set %auto.pass [ $+ [ %auto.loop.n ] ] | did -b auto 61 }
      else { did -e auto 61 }
      if ($did == 51) { nick $did(31) }
      if ($did == 61 && $me == $did(31)) { .msg nickserv identify $did(41) }
    }
  }
  if ($did == 102) {
    if ($did(102).state == 0) { .disable #auto }
    else { .enable #auto }
  }
  if ($did(5,$did(5).sel) == Général) { did -o auto 7 1 Auto identification à X | Undernet.did-h.all 201 }
  var %Undernet.loop.n 0
  while (%Undernet.loop.n < 10) {
    inc %Undernet.loop.n
    if ($did(5,$did(5).sel) == $chr(160) $+ . %Undernet.init.nick [ $+ [ %Undernet.loop.n ] ]) {
      did -o auto 7 1 ** Paramètres du pseudo %Undernet.loop.n **
      Undernet.did-h.all 12,22,32,42,52,62
      did -ra auto 32 %Undernet.nick [ $+ [ %Undernet.loop.n ] ]
      did -ra auto 42 %Undernet.pass [ $+ [ %Undernet.loop.n ] ]
      if (%Undernet.nick [ $+ [ %Undernet.loop.n ] ] == $null) { set %Undernet.nick [ $+ [ %Undernet.loop.n ] ] | did -b auto 42,52,62 }
      else { did -e auto 42,52 }
      if (%Undernet.pass [ $+ [ %Undernet.loop.n ] ] == $null) { set %Undernet.pass [ $+ [ %Undernet.loop.n ] ] | did -b auto 62 }
      else { did -e auto 62 }
      if ($did == 52) { nick $did(32) }
      if ($did == 62) { .msg x@channels.undernet.org login $did(32) $did(42) }
    }
  }
  if ($did == 202) {
    if ($did(202).state == 0) { .disable #Undernet }
    else { .enable #Undernet }
  }
  if ($did(552,$did(552).sel) == Général) { did -o auto 54 1 Auto identification à Q | autoQ.did-h.all 501 }
  var %autoQ.loop.n 0
  while (%autoQ.loop.n < 10) {
    inc %autoQ.loop.n
    if ($did(552,$did(552).sel) == $chr(160) $+ . %autoQ.init.nick [ $+ [ %autoQ.loop.n ] ]) {
      did -o auto 54 1 ** Paramètres du pseudo %autoQ.loop.n **
      autoQ.did-h.all 511,521,531,541,551,561
      did -ra auto 531 %autoQ.nick [ $+ [ %autoQ.loop.n ] ]
      did -ra auto 541 %autoQ.pass [ $+ [ %autoQ.loop.n ] ]
      if (%autoQ.nick [ $+ [ %autoQ.loop.n ] ] == $null) { set %autoQ.nick [ $+ [ %autoQ.loop.n ] ] | did -b auto 541,551,561 }
      else { did -e auto 541,551 }
      if (%autoQ.pass [ $+ [ %autoQ.loop.n ] ] == $null) { set %autoQ.pass [ $+ [ %autoQ.loop.n ] ] | did -b auto 561 }
      else { did -e auto 561 }
      if ($did == 551) { nick $did(531) }
      if ($did == 561 && $me == $did(531)) { .msg Q@CServe.quakenet.org AUTH $did(531) $did(541) }
    }
  }
  if ($did == 502) {
    if ($did(502).state == 0) { .disable #autoQ }
    else { .enable #autoQ }
  }
  if ($did(666,$did(666).sel) == Général) { did -o auto 604 1 Auto identification à C | Geeknode.did-h.all 601 }
  var %Geeknode.loop.n 0
  while (%Geeknode.loop.n < 10) {
    inc %Geeknode.loop.n
    if ($did(666,$did(666).sel) == $chr(160) $+ . %Geeknode.init.nick [ $+ [ %Geeknode.loop.n ] ]) {
      did -o auto 604 1 ** Paramètres du pseudo %Geeknode.loop.n **
      Geeknode.did-h.all 611,621,631,641,651,661
      did -ra auto 631 %Geeknode.nick [ $+ [ %Geeknode.loop.n ] ]
      did -ra auto 641 %Geeknode.pass [ $+ [ %Geeknode.loop.n ] ]
      if (%Geeknode.nick [ $+ [ %Geeknode.loop.n ] ] == $null) { set %Geeknode.nick [ $+ [ %Geeknode.loop.n ] ] | did -b auto 641,651,661 }
      else { did -e auto 641,651 }
      if (%Geeknode.pass [ $+ [ %Geeknode.loop.n ] ] == $null) { set %Geeknode.pass [ $+ [ %Geeknode.loop.n ] ] | did -b auto 661 }
      else { did -e auto 661 }
      if ($did == 651) { nick $did(631) }
      if ($did == 661) { .msg c nick identify $did(641) }
    }
  }
  if ($did == 602) {
    if ($did(602).state == 0) { .disable #Geeknode }
    else { .enable #Geeknode }
  }
  if ($did(24,$did(24).sel) == Général) { did -o auto 44 1 Auto identification à Chanserv comme founder des canaux choisis (et dont vous avez le pass ;o)) | autoFounder.did-h.all 401 }
  var %autoFounder.loop.n 0
  while (%autoFounder.loop.n < 10) {
    inc %autoFounder.loop.n
    if ($did(24,$did(24).sel) == $chr(160) $+ . %autoFounder.init.canal [ $+ [ %autoFounder.loop.n ] ]) {
      did -o auto 44 1 ** Paramètres du canal %autoFounder.loop.n **
      autoFounder.did-h.all 411,421,431,441,451,461
      did -ra auto 431 %autoFounder.canal [ $+ [ %autoFounder.loop.n ] ]
      did -ra auto 441 %autoFounder.pass [ $+ [ %autoFounder.loop.n ] ]
      if (%autoFounder.canal [ $+ [ %autoFounder.loop.n ] ] == $null) { set %autoFounder.canal [ $+ [ %autoFounder.loop.n ] ] | did -b auto 441,451,461 }
      else { did -e auto 441,451 }
      if (%autoFounder.pass [ $+ [ %autoFounder.loop.n ] ] == $null) { set %autoFounder.pass [ $+ [ %autoFounder.loop.n ] ] | did -b auto 461 }
      else { did -e auto 461 }
      if ($did == 451) { if ($server != $null) join $did(431) }
      if ($did == 461) { .msg chanserv identify $did(431) $did(441) }
    }
  }
  if ($did == 402) {
    if ($did(402).state == 0) { .disable #autoFounder }
    else { .enable #autoFounder }
  }
  if ($did == 223) { set %pass0 $$?*"Mot de Passe" }
  if ($did == 233) { set %pass1 $$?*"Mot de Passe" }
  if ($did == 243) { set %pass2 $$?*"Mot de Passe" }
  if ($did == 253) { set %pass3 $$?*"Mot de Passe" }
  if ($did == 263) { set %pass4 $$?*"Mot de Passe" }
  if ($did == 273) { set %pass5 $$?*"Mot de Passe" }
  if ($did == 283) { set %pass6 $$?*"Mot de Passe" }
  if ($did == 293) { set %pass7 $$?*"Mot de Passe" }
  if ($did == 303) { set %pass8 $$?*"Mot de Passe" }
  if ($did == 323) { if (%on.join.auth1 == $true) { set %on.join.auth1 $false }
    else set %on.join.auth1 $true 
  }
  if ($did == 333) { if (%on.join.auth2 == $true) { set %on.join.auth2 $false }
    else set %on.join.auth2 $true 
  }
  if ($did == 343) { if (%on.join.auth3 == $true) { set %on.join.auth3 $false }
    else set %on.join.auth3 $true 
  }
  if ($did == 353) { if (%on.join.auth4 == $true) { set %on.join.auth4 $false }
    else set %on.join.auth4 $true 
  }
  if ($did == 363) { if (%on.join.auth5 == $true) { set %on.join.auth5 $false }
    else set %on.join.auth5 $true 
  }
  if ($did == 373) { if (%on.join.auth6 == $true) { set %on.join.auth6 $false }
    else set %on.join.auth6 $true 
  }
  if ($did == 383) { if (%on.join.auth7 == $true) { set %on.join.auth7 $false }
    else set %on.join.auth7 $true 
  }
  if ($did == 393) { if (%on.join.auth8 == $true) { set %on.join.auth8 $false }
    else set %on.join.auth8 $true 
  }
  if ($did == 403) { if (%on.join.auth9 == $true) { set %on.join.auth9 $false }
    else set %on.join.auth9 $true 
  }
}

on 1:connect:{ if (wanadoo isin $server || voila isin $server || x-echo isin $server || sentoo isin $server) {
    if (%on.join.auth1 == $true) { .msg IriX auth %chan_irix0 %nick_irix %pass0 }
    if (%on.join.auth2 == $true) { .msg IriX auth %chan_irix1 %nick_irix %pass1 }
    if (%on.join.auth3 == $true) { .msg IriX auth %chan_irix2 %nick_irix %pass2 }
    if (%on.join.auth4 == $true) { .msg IriX auth %chan_irix3 %nick_irix %pass3 }
    if (%on.join.auth5 == $true) { .msg IriX auth %chan_irix4 %nick_irix %pass4 }
    if (%on.join.auth6 == $true) { .msg IriX auth %chan_irix5 %nick_irix %pass5 }
    if (%on.join.auth7 == $true) { .msg IriX auth %chan_irix6 %nick_irix %pass6 }
    if (%on.join.auth8 == $true) { .msg IriX auth %chan_irix7 %nick_irix %pass7 }
    if (%on.join.auth9 == $true) { .msg IriX auth %chan_irix8 %nick_irix %pass8 }
  }
}
