I have moddified an excisting invite script for using ini file.
Code:
alias invite.lchan {
  var %channels = $readini($scriptdir $+ settings.ini,invite,chan)
  if ($1 != begin && $1 != end) return $+($gettok(%channels,$1,44),:,invite.me $+ $chr(32),$gettok(%channels,$1,44)) | return
}

alias invite.me {
  some code
}

alias invite.all {
  var %channels = $readini($scriptdir $+ settings.ini,invite,chan)
  var %num = $numtok(%channels,44) , %lcv = 1
  while (%lcv <= %num) { 
    .timer 1 %lcv invite.me $gettok(%channels,%lcv,44)
    inc %lcv
  }
}

menu * {
  invite
  .All { invite.all $me }
  Single
  ..$submenu($invite.lchan($1))
}

settings.ini
Code:
[invite]
chan=channel1,channel2,channel3,channel4

What i trying to accomplish is splitting it up for different networks.

menu function "..$submenu($invite.lchan($1))" now shows a list with all channels but i would like to have it list it with networks.

wanted menu output
Single
- network1
* channel1
* channel2
- network2
* channel3
- network3
* channel4

ini should look like this then
settings.ini
Code:
[invite]
network1=channel1,channel2
network2=channel3
network3=channel4

Anyone that can help me out or put me on track to make it fit my needs?