IRC: Clean up reconnect code

Manually tested by unplugging internet.