irc.c condensed code