summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cb63060ea..06f10ab3e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -25,7 +25,6 @@
#include "services.h"
#include "timers.h"
-#include "version.h"
#include "modules.h"
// getrlimit.
@@ -34,6 +33,8 @@
# include <sys/resource.h>
#endif
+const char * const Anope::compiled = __TIME__ " " __DATE__;
+
/******** Global variables! ********/
/* Command-line options: (note that configuration variables are in config.c) */
@@ -74,12 +75,6 @@ time_t start_time;
/* Parameters and environment */
char **my_av, **my_envp;
-/* Moved here from version.h */
-const char version_number[] = VERSION_STRING;
-const char version_number_dotted[] = VERSION_STRING_DOTTED;
-const char version_build[] = "build #" BUILD ", compiled " __DATE__ " " __TIME__;
-/* the space is needed cause if you build with nothing it will complain */
-
/******** Local variables! ********/
/* Set to 1 after we've set everything up */
@@ -455,7 +450,7 @@ int main(int ac, char **av, char **envp)
if ((i = init_primary(ac, av)))
return i;
- Alog(LOG_TERMINAL) << "Anope " << version_number << ", " << version_build;
+ Alog(LOG_TERMINAL) << "Anope " << Anope::Version() << ", " << Anope::Build();
#ifdef _WIN32
Alog(LOG_TERMINAL) << "Using configuration file " << services_dir << "\\" << services_conf;
#else