I think you'll find the Perform option, and probably the on *:connect event does not trigger until you have fully connected to the server.
this thread might help you, although remember that person is using a proxy. If you're trying to use the /quote pass command in conjunction with the BNC, it might be better that you use an alias of some sort. For example
/alias bncpass quote pass YourBNCPassord so when you connect just type /bncpass.
Regards,