I have been trying to make a script that changes the users nick as fast as possible after that nick is available. the two nicks I'm going to use wont be in the same channel which makes it a bit to hard for me :p

all I get is script that keeps spamming "/nick nick1" until it is available frown

can someone help me with that?
and multiple network support wont be needed

so what I want is:

nick1 and nick2 are connected to the same network
nick1 disconnects or changes nick
nick2 renames to nick1