IrcConnection: fix automatic reconnect the initial connection errors