I was happily scripting when a friend ask for a "little help". No problem, I said. But, actually, I've a little one.

Look this script:
Code:
alias list {
  var %ß 1
  while ($readini(%file,$ini(%file,%ß),chan)) { 
    var %£ 1
    while ($gettok($v1,%£,44)) { echo -a $v1 | inc %£ }
  inc %ß }
}


... and it's ini's file:
Code:
[FirstNetwork]
chan=#chanone,#chantwo,#chantree
[SecondNetwork]
chan=#chan1,#chan2,#chan3,#chan4


It should list all chans of all networks. But it's echo only the first chan of each network ):. Does anybody know why?

(if u can't understand me 'cuz damn pro english just find nemo, i mean, the error -.-)