diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-19 17:42:17 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-19 17:42:17 +0000 |
commit | ada71328a984fa145ddb27c8e6f2ca80dbb9524e (patch) | |
tree | 8e6d6f3619f88c8a462f98d0b533a1330ffaf152 /src/main.c | |
parent | fb2191240c3dc31d2068793357f0b4c2cf870a0c (diff) |
BUILD : 1.7.6 (489) BUGS : 244, 246, 247, 248, 249, 250, 251, 252, 254, 255 NOTES : 1. In some cases READONLY was not respected, and data was saved. 2. Corrected a few mistakes in example.conf. 3. Wrong column type in tables.sql for nick alias status fiag. 4. listchans and listnicks work under Cygwin. 5. NickRegDelay no longer accepts negative values. 6. -is44 option not show if converter not built. 7. Removed #ifndef STREAMLINE from the code as its no longer set during build time 8. MS MAX LIMIT was set incorrectly 9. Segfault if USERDB enabled and tables does not exist 10. Provides clear message of SUPERADMIN is not enabled
git-svn-id: svn://svn.anope.org/anope/trunk@489 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@343 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/main.c b/src/main.c index 6dc3b7a62..e4bb9ccf6 100644 --- a/src/main.c +++ b/src/main.c @@ -126,9 +126,7 @@ extern void expire_all(void) waiting = -27; expire_szlines(); } -#ifndef STREAMLINED expire_exceptions(); -#endif #ifdef USE_THREADS if (ProxyDetect) proxy_expire(); @@ -241,8 +239,10 @@ static void services_restart(void) **/ void do_restart_services(void) { - expire_all(); - save_databases(); + if (!readonly) { + expire_all(); + save_databases(); + } services_restart(); exit(1); } @@ -446,17 +446,25 @@ int main(int ac, char **av, char **envp) else progname = av[0]; - /* Were we run under "listnicks" or "listchans"? Do appropriate stuff - * if so. */ - if (strcmp(progname, "listnicks") == 0) { +#ifdef __CYGWIN__ + if (strcmp(progname, "listnicks.exe") == 0) +#else + if (strcmp(progname, "listnicks") == 0) +#endif + { do_listnicks(ac, av); return 0; - } else if (strcmp(progname, "listchans") == 0) { + } +#ifdef __CYGWIN__ + else if (strcmp(progname, "listchans.exe") == 0) +#else + else if (strcmp(progname, "listchans") == 0) +#endif + { do_listchans(ac, av); return 0; } - /* Initialization stuff. */ if ((i = init(ac, av)) != 0) return i; |