Following this, Hornblower discovers the trick and angrily attempts to challenge the captain to a duel; the captain tells him that this is both an offence and a bad idea.
Hornblower discovers the trick. This is following this. Hornblower attempts to challenge the captain to a duel. This is following this. This is both an offence and a bad idea. This is what the captain tells him.