How do i get a script to rejoin a channel only AFTER i identify for my nick? I have the join channel part written AFTER the identify part, but it is often not fast enough as there is usually a small delay when identifying the nick.

/msg nickserv identify [password]
/join #channel

This doesn't work all the time unfortunately.