Any person who abets any offence shall, if the act abetted is committed in consequence of the abetment, notwithstanding that the person abetted does the act with a different intention or knowledge from that of the abettor, be liable to the punishment provided for the offence.