refactor names for functions in irc.c in an hierarchical format