Dual-function quorum-sensing systems in bacterial pathogens and symbionts