Make sure you have a dir/file called "system" in "C:\Program Files\mIRC\". If its parameter doesn't exist $shortfn returns what you gave it.