forked from teamnwah/openmw-tes3coop
[Server] Use first 10 characters of CommitHash for humans
This commit is contained in:
parent
80925736c0
commit
cc7efc6e37
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue