If the network you're on has Services, this ought to help you out.

Of course each Services package has their own functions and syntax... try /msg nickserv help ghost -or- /nickserv help ghost for more information.