diff options
author | Adam <Adam@Anope.org> | 2010-06-25 20:00:21 -0400 |
---|---|---|
committer | Adam <Adam@Anope.org> | 2010-06-25 20:00:21 -0400 |
commit | 03fbc7d281f5039a97c851970dea3cd8cfaefd64 (patch) | |
tree | c527046a41b97751b1a52ba7046e36337f0d0373 /src/init.cpp | |
parent | cbcead4e89b3dc0dfb236fff9cb3e62b1b0707c0 (diff) |
Changed the versioning system to use git
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index fc5b61a03..88a9e441b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -198,13 +198,13 @@ int init_primary(int ac, char **av) if (GetCommandLineArgument("version", 'v')) { - Alog(LOG_TERMINAL) << "Anope-" << version_number << " -- " << version_build; + Alog(LOG_TERMINAL) << "Anope-" << Anope::Version() << " -- " << Anope::Build(); return -1; } if (GetCommandLineArgument("help", 'h')) { - Alog(LOG_TERMINAL) << "Anope-" << version_number << " -- " << version_build; + Alog(LOG_TERMINAL) << "Anope-" << Anope::Version() << " -- " << Anope::Build(); Alog(LOG_TERMINAL) << "Anope IRC Services (http://www.anope.org)"; Alog(LOG_TERMINAL) << "Usage ./" << SERVICES_BIN << " [options] ..."; Alog(LOG_TERMINAL) << "-c, --config=filename.conf"; @@ -413,7 +413,7 @@ int init_secondary(int ac, char **av) write_pidfile(); /* Announce ourselves to the logfile. */ - Alog() << "Anope " << version_number << " (ircd protocol: " << version_protocol << ") starting up" << (debug || readonly ? " (options:" : "") << (debug ? " debug" : "") << (readonly ? " readonly" : "") << (debug || readonly ? ")" : ""); + Alog() << "Anope " << Anope::Version() << " (ircd protocol: " << version_protocol << ") starting up" << (debug || readonly ? " (options:" : "") << (debug ? " debug" : "") << (readonly ? " readonly" : "") << (debug || readonly ? ")" : ""); start_time = time(NULL); /* If in read-only mode, close the logfile again. */ |