[Server] Add commit hash to the rules

This commit is contained in:
Koncord 2017-05-28 18:29:00 +08:00
parent 565889ccbc
commit 80925736c0

View file

@ -276,6 +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()->Start();
}