I did check LibCustomMenu originally, but I didn't notice until just then that it has an API for lib:RegisterPlayerContextMenu(func, category)
I'll update my code to use it.
So as far as hooking into FormatAndAddChatMessage, you're saying to leave it as is in my implementation and that'll work with pChat?
Adding an ##OptionalDependsOn for pChat is no issue, I can do that.
My question regarding the chat history... if a message is muted (and hidden instead of muted + missed message notification), would the player
want it to show up in the history? Because I think at the moment it would (and should) hide it from the chat history as well, which is how I imagine it works at the moment.