merging parse_irc_msg and chathandle into the same function, called parse_irc_msg; less messy