Vixen
c7401864
csharp
public sealed class ChatFilters.Words

Replaces words a game does not want said, and lets the message through.

Read the guide page for this →

Remarks

⚠ It censors rather than rejects, and that is the whole reason a filter may rewrite. Refusing a message for one word tells the sender exactly which word is on the list, and a list that can be probed a word at a time is a list that is worked around by lunchtime.

Fields and properties (2)

  • public char Replacement

    What each word is replaced with.

  • public string Name

    What it is called, in a report.

Methods (2)

  • public Words(IEnumerable<string> words, char replacement = '*')

    Makes one over a game's list.

  • public ChatVerdict Apply(ChatDraft draft, IChatContext context)

    Judges a message, and may rewrite it.

Used by (1)

  • ChatFilterTestsVixen.Gameplay.Chat.Tests