irc.c processing of server messages shortened and improved yet still buggy