Fix global variable leakage
Add missing braces
Rm superfluous local vars, pass had_error to close event
Use strict equality (===)
Fix typo in comment
Merge pull request #552 from M2Ys4U/cleanup

Small cleanup of server/irc/connection.js
Merge remote branch 'KiwiIRC/development' into simosnap