Use QSet<QString> instead of QStringList
This commit is contained in:
parent
ec8820ac64
commit
9616ee51b3
@ -253,7 +253,7 @@ InputBar::updateTextContentProperties(const QString &t)
|
||||
|
||||
// check for invalid commands
|
||||
auto commandName = getCommandAndArgs().first;
|
||||
static const QStringList validCommands{QStringLiteral("me"),
|
||||
static const QSet<QString> validCommands{QStringLiteral("me"),
|
||||
QStringLiteral("react"),
|
||||
QStringLiteral("join"),
|
||||
QStringLiteral("knock"),
|
||||
|
Loading…
Reference in New Issue
Block a user