Correct nick recognition in mainurl.c as well.  Closes #372.