diff options
-rw-r--r-- | lib/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 29c044f1..48d3a532 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -723,7 +723,7 @@ User* Connection::user(const QString& userId) { if (userId.isEmpty()) return nullptr; - if (userId.front() != '@' || !userId.contains(':')) + if (!userId.startsWith('@') || !userId.contains(':')) { qCCritical(MAIN) << "Malformed userId:" << userId; return nullptr; |