diff options
Diffstat (limited to 'src/ClientInfo.hpp')
| -rw-r--r-- | src/ClientInfo.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ClientInfo.hpp b/src/ClientInfo.hpp index c29ea40..e01b2a2 100644 --- a/src/ClientInfo.hpp +++ b/src/ClientInfo.hpp @@ -166,12 +166,15 @@ public: case Auto: break; case Clonk: { - if(parts.length() != 6) throw ConfigException("Cannot read corrupt ClientInfo with Clonk-ClientInterface: " + string.toStdString()); + if(parts.length() != 6 && parts.length() != 5) throw ConfigException("Cannot read corrupt ClientInfo with Clonk-ClientInterface: " + string.toStdString()); info.pcName = parts.at(1); info.CUID = parts.at(2).toInt(); info.nick = parts.at(3); info.activated = ConfigValueBase::getValue<bool>(parts.at(4)); - info.players = ConfigValueBase::getValue<QList<QString>>(parts.at(5)); + if(parts.length() > 5) + { + info.players = ConfigValueBase::getValue<QList<QString>>(parts.at(5)); + } break; } case IRC: |
