summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.c b/init.c
index 5a82eb610..be1be3663 100644
--- a/init.c
+++ b/init.c
@@ -431,7 +431,7 @@ static int parse_options(int ac, char **av)
} else if (!strcmp(s, "version")) {
fprintf(stdout, "Anope-%s %s -- %s\n", version_number,
version_flags, version_build);
- return 0;
+ exit(EXIT_SUCCESS);
} else {
fprintf(stderr, "Unknown option -%s\n", s);
return -1;