Skip to content

Personal chat filter (opt-in, disabled by default) #351

@blakeplusplus

Description

@blakeplusplus

What problem does this solve?

A personal chat filter would allow users who don't wish to see certain slurs, words, or topics communicated within the in-game chat to block those messages from being visible on their client. This would allow users to curate their social experience.

Is your feature request related to a problem? Please describe.

I personally don't really wanna see slurs. Doesn't feel nice. I do enjoy the social aspect and shit-talking, so I don't want to disable chat entirely if I can help it.

Describe the solution you'd like

A personal disabled by default/opt-in chat filter which uses a basic non-exhaustive list of slurs (the iw4x_filters.json file is likely too exhaustive for this use-case). This filter would intercept chat messages before they are shown on the client, and then remove them if they contain the matching word.

To enable this feature, a console command could be used or you could simply uncomment a line in the slurs list file. The latter would probably be easiest.

Possible extensions to this functionality would include something server side for admins to use, word replacement instead of word filtering, in-game options for toggling on/off the feature.

Technical considerations

No response

Compatibility impact

  • This change would be backward compatible
  • This change might break compatibility with existing servers/mods
  • Unsure about compatibility impact

Describe alternatives you've considered

Turning off chat works, but then you kill the social aspect of the chat. I quite enjoy the chat, so this doesn't work well for me.
Servers on iw4x tend to operate without consideration for anyone other than nostalgic bigoted men, so trusting server admins to do the work is not a viable alternative.

Existing workarounds

No response

Supporting materials

No response

Checklist

  • I have searched existing issues to ensure this is not a duplicate
  • I have limited this request to a single feature
  • I have provided clear use cases for this feature
  • I have considered the implementation complexity and compatibility impact

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions