on *:connect:{
if ($network == your network) command to identify with your password here
}
Your network would be the network you hang on (dalnet, undernet, efnet and so on) - if you're not on any of these, please connect, then type //echo -a $network, then use the value that gets echoed. If nothing appears, reply here.
The command to identify [...] would be based on your network services. For example, on the network I hang on we have NickServ and the command would be "nickserv identify mypassword". Different networks could have different commands, like UnderNet, which has X instead of NickServ, and a different identify command. You need to know the proper command for yours.