aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 0439ead476..1f6b84119a 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -834,10 +834,14 @@ int GetNumCores()
#endif
}
-std::string CopyrightHolders()
+std::string CopyrightHolders(const std::string& strPrefix)
{
- std::string strCopyrightHolders = _(COPYRIGHT_HOLDERS);
- if (strCopyrightHolders.find("%s") == strCopyrightHolders.npos)
- return strCopyrightHolders;
- return strprintf(strCopyrightHolders, _(COPYRIGHT_HOLDERS_SUBSTITUTION));
+ std::string strCopyrightHolders = strPrefix + _(COPYRIGHT_HOLDERS);
+ if (strCopyrightHolders.find("%s") != strCopyrightHolders.npos) {
+ strCopyrightHolders = strprintf(strCopyrightHolders, _(COPYRIGHT_HOLDERS_SUBSTITUTION));
+ }
+ if (strCopyrightHolders.find("Bitcoin Core developers") == strCopyrightHolders.npos) {
+ strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
+ }
+ return strCopyrightHolders;
}