I would fire him, but luckily, he would never actually be hired.
I would prefer that he spent 2 hours writing clean, almost functioning code, than for him to slap something together that works.
Programming style is important, especially when working on a team.
It becomes critical when supporting legacy applications, written by several people.
Part of being a professional, and not just some script-kiddie, is caring about the code.
It's about realizing someone else will read this code (Maybe even you!) six months from now. Therefore, you should make it as easy as possible to maintain.