aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connection.cpp2
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;