Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
warning_categories.cpp File Reference
Include dependency graph for warning_categories.cpp:

Functions

QList< WarningCategoryparseWarningCategories (const QString &value)

Function Documentation

◆ parseWarningCategories()

QList< WarningCategory > parseWarningCategories ( const QString & value)

Parses the server/officialwarnings setting value into warning categories.

Entries are separated by commas. Each entry is a category name, optionally followed by "|" and the recommended starting intervention level: "Abusive Language|1,Cheating|2,Spamming" Entries without an explicit level default to intervention level 1. Empty entries are skipped.

Here is the caller graph for this function: