That looks fine, except you might want to add timers to the nick and identify commands since it would take a second for the nick to be ghosted.