summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/LegacyInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-08-16 02:17:50 +0200
committerPetr Mrázek <peterix@gmail.com>2015-08-16 02:17:50 +0200
commit4e3af265dad57a27af4051cb574fb90539d287d0 (patch)
tree19fd569f5d643bbab441f7a4e6eb8e0141335473 /logic/minecraft/LegacyInstance.cpp
parentd7b3887fe1e754aa0ec5970a175e439aa5c8fe86 (diff)
downloadMultiMC-4e3af265dad57a27af4051cb574fb90539d287d0.tar
MultiMC-4e3af265dad57a27af4051cb574fb90539d287d0.tar.gz
MultiMC-4e3af265dad57a27af4051cb574fb90539d287d0.tar.lz
MultiMC-4e3af265dad57a27af4051cb574fb90539d287d0.tar.xz
MultiMC-4e3af265dad57a27af4051cb574fb90539d287d0.zip
GH-1164 make sure the censor filter never contains empty keys
Diffstat (limited to 'logic/minecraft/LegacyInstance.cpp')
-rw-r--r--logic/minecraft/LegacyInstance.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/logic/minecraft/LegacyInstance.cpp b/logic/minecraft/LegacyInstance.cpp
index ed0b1001..782135eb 100644
--- a/logic/minecraft/LegacyInstance.cpp
+++ b/logic/minecraft/LegacyInstance.cpp
@@ -170,21 +170,7 @@ std::shared_ptr<LaunchTask> LegacyInstance::createLaunchTask(AuthSessionPtr sess
}
if (session)
{
- QMap<QString, QString> filter;
- if (session->session != "-")
- filter[session->session] = tr("<SESSION ID>");
- filter[session->access_token] = tr("<ACCESS TOKEN>");
- filter[session->client_token] = tr("<CLIENT TOKEN>");
- filter[session->uuid] = tr("<PROFILE ID>");
- filter[session->player_name] = tr("<PROFILE NAME>");
-
- auto i = session->u.properties.begin();
- while (i != session->u.properties.end())
- {
- filter[i.value()] = "<" + i.key().toUpper() + ">";
- ++i;
- }
- process->setCensorFilter(filter);
+ process->setCensorFilter(createCensorFilterFromSession(session));
}
return process;
}