irc/client: handleMessage function