diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-07-01 12:24:20 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-07-01 12:24:20 +0000 |
commit | 0d5132c0c72f2c541fb564abea651333d9cef360 (patch) | |
tree | c1f7d9294395eddf657b0ca9e57aaf1ce93608d7 | |
parent | 07c7cda90d4e1b2d5d9c258a273c5af217aeb463 (diff) |
BUILD : 1.7.10 (839) BUGS : NOTES : Removed the requirement of a valid config file when running ./services -version
git-svn-id: svn://svn.anope.org/anope/trunk@839 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@592 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/init.c | 10 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 11 insertions, 6 deletions
@@ -3,6 +3,7 @@ Anope Version S V N Provided by Anope Dev. <dev@anope.org> - 2005 06/26 A New module pack module: hs_request. [ #00] 06/03 A Protocol files can now fill mod_current_buffer with custom code. [#389] +07/01 F Requesting a -version on startup doesn't require a valid config. [ #00] 06/04 F Register script now works again. [#394] 06/04 F Finishing sync for Ultimate3 was not done correctly. [#398] 06/03 F Moved checks for UseTokens, UseTS6, and Numeric. [#385] diff --git a/src/init.c b/src/init.c index 2171be697..f0212cc70 100644 --- a/src/init.c +++ b/src/init.c @@ -191,6 +191,10 @@ static int parse_dir_options(int ac, char **av) return -1; } log_filename = av[i]; + } else if (strcmp(s, "version") == 0) { + fprintf(stdout, "Anope-%s %s -- %s\n", version_number, + version_flags, version_build); + exit(EXIT_SUCCESS); } } } @@ -319,10 +323,6 @@ static int parse_options(int ac, char **av) forceload = 1; } else if (!strcmp(s, "noexpire")) { noexpire = 1; - } else if (!strcmp(s, "version")) { - fprintf(stdout, "Anope-%s %s -- %s\n", version_number, - version_flags, version_build); - exit(EXIT_SUCCESS); } else if (!strcmp(s, "help")) { fprintf(stdout, "Anope-%s %s -- %s\n", version_number, version_flags, version_build); @@ -413,7 +413,7 @@ int init_primary(int ac, char **av) if (set_group() < 0) return -1; - /* Parse command line for -dir option. */ + /* Parse command line for -dir and -version options. */ parse_dir_options(ac, av); /* Chdir to Services data directory. */ diff --git a/version.log b/version.log index a9e3aed07..c42a0d6c1 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="10" -VERSION_BUILD="836" +VERSION_BUILD="839" # $Log$ # +# BUILD : 1.7.10 (839) +# BUGS : +# NOTES : Removed the requirement of a valid config file when running ./services -version +# # BUILD : 1.7.10 (836) # BUGS : # NOTES : Added italian translations for all modpack modules |