After playing with this and modified it i noticed using levels is more handy for me but i can't manage to get out put sorted:
now it gives me this
-> 1 group1:user1!*user1@localhost
-> 2 group2:user4!*user4@localhost
-> 3 group2:user5!*user5@localhost
-> 4 group1:user2!*user2@localhost
-> 5 group1:user3!*user3@localhost
-> 6 group2:user6!*user6@localhost

But i would like to see something like this
group1
user1
user2
user3

group2
user4
user5
user6

Last part of <useraddress> (!*user6@localhost) is need for script but not needed in output but i don't know how to strip that.

More simple would be sorting user.ini and give that as output but i'm trying to understand current piece of code and extend it with other options

Last edited by ots654685; 01/04/08 04:35 PM.