diff options
author | Sky <git@bunnies.cc> | 2014-01-10 12:40:20 +0000 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2014-01-10 12:52:14 +0000 |
commit | 3c189a65530a8bb67a86806861ca3abcd7c2da3b (patch) | |
tree | 3ea512b00248e2a34bddce12b6870b336c6c998c | |
parent | 86b6cdfcb3c9f9afa572901c0c0f1654a4bf19ea (diff) | |
download | MultiMC-3c189a65530a8bb67a86806861ca3abcd7c2da3b.tar MultiMC-3c189a65530a8bb67a86806861ca3abcd7c2da3b.tar.gz MultiMC-3c189a65530a8bb67a86806861ca3abcd7c2da3b.tar.lz MultiMC-3c189a65530a8bb67a86806861ca3abcd7c2da3b.tar.xz MultiMC-3c189a65530a8bb67a86806861ca3abcd7c2da3b.zip |
Hide user properties in the console too
-rw-r--r-- | logic/MinecraftProcess.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/logic/MinecraftProcess.cpp b/logic/MinecraftProcess.cpp index 209929b7..b3959db9 100644 --- a/logic/MinecraftProcess.cpp +++ b/logic/MinecraftProcess.cpp @@ -90,6 +90,14 @@ QString MinecraftProcess::censorPrivateInfo(QString in) in.replace(profileId, "<PROFILE ID>"); in.replace(profileName, "<PROFILE NAME>"); } + + auto i = m_account->user().properties.begin(); + while (i != m_account->user().properties.end()) + { + in.replace(i.value(), "<" + i.key().toUpper() + ">"); + ++i; + } + return in; } |