how to do the coding for the tcl, so that after we added a new owner, the eggdrop will identify whether the new owner has identified his nick or not before accepting to set the password to the eggdrop.
if not identified nick, the eggdrop will not accept his password and tell him to identify nick first before set his password to the eggdrop.
if identified nick, the eggdrop will accept to set his password to the eggdrop, and identify him as the new owner.
please give me some example code. NB : set password to eggdrop via PRIVMSG.
First off, how would an user identify in the first place without a password?
And why would you grant owner privileges to a user record that has no password set yet. The "normal" approach is to create a new user record with limited/none privileges, add restrictive hostmasks, contact the user and tell then to set a new password. Once the user confirms they've successfully set their password, add further privileges and hostmasks as needed.
The above process could of course be somewhat automated through script, but securing it would require additional work.
A different approach could be to create the user record with a random password, which you distribute to the new user somehow. I guess this would be somewhat similar to the "identification" you are talking 'bout. After all, that's what we use passwords in eggies in the first place...