My mIRC is set to rejoin channels on connect. One of the channels requires nick registeration, so I made a script which automatically sends the password for nickserv.

Since I wanna send the message to nickserv before the On Connect event activates mIRC functions (Like rejoin channels), I wanted to use on ^*:connect, but then it doesn't catch the event.
When using on *:connect, then it sends the join channel command before the message to nickserv, and then the server gives an error that I need to register my nick in order to join that channel, and I need to rejoin the channel manualy.

Is there a solution for this?

10x