Client-side chat ignore function

I’m trying to write a client-side chat ignore function to allow a client to ignore “say” and “tell” messages from other players based on GUID/player name. I’d like to be able to store the ignored player information in a file much like the ban function does, and retrieve it when ioq3 loads.
I’m a C novice and would appreciate any help in getting started with this. Thanks.