summaryrefslogtreecommitdiffstats
path: root/src/PatchedClonkParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchedClonkParser.cpp')
-rw-r--r--src/PatchedClonkParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PatchedClonkParser.cpp b/src/PatchedClonkParser.cpp
index e5abd7d..7eea65d 100644
--- a/src/PatchedClonkParser.cpp
+++ b/src/PatchedClonkParser.cpp
@@ -8,7 +8,7 @@ PatchedClonkParser::PatchedClonkParser(CRSMSession& session) : ClonkParser(sessi
namespace {
void parseClientInfo(QString& message, QString& pcName, QString& user)
{
- if(message.length() > 5 && message.at(0) == '\\')
+ if(!message.isEmpty() && message.at(0) == '\\')
{
QString parts[2];
for(int i = 1, part = 0; i < message.length() && part < 2; ++i)