Join/Part Hexchat

You need to send the CAP before you JOIN.

So you should be able to get HexChat to run the CAP command before it joins any channels but after LOGIN