According to mirc's help file, it says:
The # sign refers to the channel you are currently on. So if you are on channel #blah, and you type /p then mIRC replaces the # sign with #blah, and the final command is /part #blah.
So $chan and # are interchangeable in my opinion.