summaryrefslogtreecommitdiffstats
path: root/src/ClientInfo.hpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2015-10-13 15:33:22 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2015-10-13 15:33:22 +0200
commit1f6b9d308650b702cdfe49b7540bef4b3a4fc9f9 (patch)
treeac6775440f54478148397b0c499dd894c49a8c7f /src/ClientInfo.hpp
parent2edcec94e9e3f55313d4aa6d784e52ce37f1ba0e (diff)
downloadmanager-1f6b9d308650b702cdfe49b7540bef4b3a4fc9f9.tar.gz
manager-1f6b9d308650b702cdfe49b7540bef4b3a4fc9f9.zip
Correctly escape ClientInfo and ScenarioSettings
Diffstat (limited to 'src/ClientInfo.hpp')
-rw-r--r--src/ClientInfo.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClientInfo.hpp b/src/ClientInfo.hpp
index 1334e71..83005e6 100644
--- a/src/ClientInfo.hpp
+++ b/src/ClientInfo.hpp
@@ -144,7 +144,7 @@ public:
{
info = ClientInfo();
if(string == "empty") return;
- QStringList parts(string.split(':', QString::KeepEmptyParts));
+ QStringList parts(Util::splitEscaped(string, ':', '|'));
ClientInterface interface = static_cast<ClientInterface>(parts.first().toUInt(0, 36));
if(interface > ClientInterface::Last || interface < ClientInterface::First)
{
@@ -190,6 +190,6 @@ public:
case IRC: ret.append(info.nick); break;
case Management: ret.append(info.management.name); break;
}
- return ret.join(':');
+ return Util::joinEscape(ret, ':', '|');
}
};