Sorry to bump an old thread but this is nearly want I'm trying to look for.

I use two nicks: one when I'm active and another one when I'm away. Since my connection isn't that great, I get disconnected 3 to 4 times a day. By default, I ghost the normal nick in the auto perform, but when it's the away nick that I'm using at the time, it causes to reconnect to the other nick (main), so it kinda beats the purpose of using an away nick.

Do you think your code can be adapted to this?

I'll appreciate any help.