irc: emit and log send only after flush