![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
#include "warning_categories.h"Functions | |
| QList< WarningCategory > | parseWarningCategories (const QString &value) |
| 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.