From 83a2b9b561be6a0503248790f04b336595b19442 Mon Sep 17 00:00:00 2001 From: "ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 4 Apr 2004 14:29:36 +0000 Subject: BUILD : 1.7.0 (32) BUGS : NOTES : Added -version arguement to return anope version and build information git-svn-id: svn://svn.anope.org/anope/trunk@32 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@22 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + init.c | 4 ++++ version.log | 6 +++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index ab4cc6924..64cdf23a2 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Anope Version 1.7.0 -------------------- Provided by Anope Dev. +2004/04/04 Added -version argument to return version and build info 2004/04/04 Fixed moduleAddCommand for a non-existant service 2004/04/01 Added memo2mail and /msg memoserv set notify MAIL/NOMAIL. 2004/03/31 Fixed MySQL double encryption if using MD5. diff --git a/init.c b/init.c index e3262d487..5a82eb610 100644 --- a/init.c +++ b/init.c @@ -428,6 +428,10 @@ static int parse_options(int ac, char **av) } else if (!strcmp(s, "is44")) { is44 = 1; #endif + } else if (!strcmp(s, "version")) { + fprintf(stdout, "Anope-%s %s -- %s\n", version_number, + version_flags, version_build); + return 0; } else { fprintf(stderr, "Unknown option -%s\n", s); return -1; diff --git a/version.log b/version.log index b6d7ca4d2..bfe40d6e3 100644 --- a/version.log +++ b/version.log @@ -8,11 +8,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="0" -VERSION_BUILD="30" +VERSION_BUILD="32" VERSION_EXTRA="" # $Log$ # +# BUILD : 1.7.0 (32) +# BUGS : +# NOTES : Added -version arguement to return anope version and build information +# # BUILD : 1.7.0 (30) # BUGS : http://bugs.anope.org/show_bug.cgi?id=3 # NOTES : Fixed moduleAddCommand for a non-existant service, now returns MOD_ERR_NOSERVICE, updated hs_moo to deal with it nicely -- cgit