Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
warning_categories.cpp File Reference
#include "warning_categories.h"
#include <QChar>
#include <QStringList>
#include <qnamespace.h>
Include dependency graph for warning_categories.cpp:

Functions

QList< WarningCategory > parseWarningCategories (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 call graph for this function:
Here is the caller graph for this function: