From cc7efc6e37a124080cc5d341090f3b863f6b61f7 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 28 May 2017 18:32:23 +0800 Subject: [PATCH] [Server] Use first 10 characters of CommitHash for humans --- apps/openmw-mp/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/main.cpp b/apps/openmw-mp/main.cpp index 722694b02..3eee94c92 100644 --- a/apps/openmw-mp/main.cpp +++ b/apps/openmw-mp/main.cpp @@ -59,7 +59,7 @@ void printVersion(string version, Version::Version ver, int protocol) #endif cout << ")" << endl; cout << "Protocol version: " << protocol << endl; - cout << "Commit hash: " << ver.mCommitHash << endl; + cout << "Commit hash: " << ver.mCommitHash.substr(0, 10) << endl; cout << "------------------------------------------------------------" << endl; } @@ -276,7 +276,7 @@ int main(int argc, char *argv[]) networking.getMasterClient()->SetUpdateRate((unsigned)updateRate); string hostname = mgr.getString("hostname", "General"); networking.getMasterClient()->SetHostname(hostname); - networking.getMasterClient()->SetRuleString("CommitHash", version.mCommitHash); + networking.getMasterClient()->SetRuleString("CommitHash", version.mCommitHash.substr(0, 10)); networking.getMasterClient()->Start(); }