add util function to exactly reconstruct already parsed protocol messages
add ugly and insane irc_can_read() which is a hack at best
fix a potential segfault when dumping early
add a return i obviously forgot