Fixed irc_decode and added unit tests.