Simply type /nick <new nickname>

If by 'register' you mean register with a network service such as nickserv, you will need to consult a help channel on that network to ask or tell us which network you're referring to and see if someone here can help.