The latest version of mIRC (v7.32) supports both NAMESX and UHNAMES and should enable them automatically if the server indicates that it supports them in ISUPPORT numeric 005. Is the server you are using including UHNAMES in numeric 005?