Minor irc.c refactor