It took me a while to figure out how to get a password reset email from freenode, so here’s how:

/msg NickServ SENDPASS <account>