Use github.com/sorcix/irc for message and prefix parsing.