factoring out the various IRC protocol messages