A Dublin man has been jailed for his part in a violent scuffle at a packed city centre pub where he and others threw chairs at door staff.