summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-06-26 01:39:11 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-06-26 01:39:11 -0400
commit4e31757f1467b36034e1dcef10d78533ff302d57 (patch)
tree1cc9e0ec4f450c7fa33ced1b0e39a3355fedd636 /src/init.cpp
parent6dc3af5db41ecb24669b259c776c51964539d531 (diff)
parentc7cb8897b400f5df31d0ae12dcce892a2b0d1590 (diff)
Merge branch '1.9' of ssh://anope.git.sf.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp6
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. */