Level:
"badmin" = Botnet Administrator
"cadmin" = Channel Administrator
"ccadmin" = Channel Co Administrator
"members" = Channel Members
Step 2: after adding
somenick will ask to set there password :
"Please set your password with /msg botnick pass <your password>"
Step 3:
after somenick set there password, bots notices:
"Successfully added you into my channel partition as Botnet Administrator"
"You may do so by typing /msg botnick pass <password> now to access"
First off, you'd probably like to use a different command name for adduser, as this is already in use by eggdrop (you could, of course, rename eggdrop's command - though this could lead to confusions amongst admins later on).
Next step, separate each bit of info provided by the user. split and lindex (tcl manual) is your friend here. You'll also have to get the user@host of the nickname, see the getchanhost command for this (documented in doc/tcl-commands.doc).
Once we have all the info needed, use the adduser command (doc/tcl-commands.doc) to create the new handle.
Next, use the chattr command (doc/tcl-commands.doc) to assign the handle the appropriate flags depending on their "level".
Finally, use the puthelp command (doc/tcl-commands.doc) to send the user a PRIVMSG or NOTICE that (s)he needs to set his/her password.
The access-command is pretty much the same as above, other than instead of adding a new handle or changing flags, you use the matchattr command (doc/tcl-commands.doc) to test whether the handle has this or that flag for this or that channel. If the user is visible in the channel, you could probably also use the nick2hand command (doc/tcl-commands.doc) to get one channel member's handle as identified by your eggdrop.