If the error gave the whole filename then mIRC is recieveing the whole filename and understanding it meaning he has been using "

Also mIRC doesn't just send it to windows, it first does some error checking of its own.