refactor IRC.raw() and other small tweaks