mIRC already allows you to enter the key/password in the favourite channels dialog.