diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-08 17:18:21 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-08 17:18:21 +0000 |
commit | 9464b59137f6ded7a1a8055c92e54059bcafa41f (patch) | |
tree | 9bdc58ef7da5082f1070c39debd9372b3fffd2c7 | |
parent | d5cf78e6f7e8caafefb988b21c4fa0c140c60803 (diff) |
Merge do_restart_services and services_restart().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2445 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/main.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/main.c b/src/main.c index 5b6ef9091..a8ee4aeb1 100644 --- a/src/main.c +++ b/src/main.c @@ -157,9 +157,12 @@ void save_databases() /*************************************************************************/ /* Restarts services */ - -static void services_restart() +void do_restart_services() { + if (!readonly) { + expire_all(); + save_databases(); + } alog("Restarting"); FOREACH_MOD(I_OnPreRestart, OnPreRestart()); @@ -179,20 +182,6 @@ static void services_restart() log_perror("Restart failed"); close_log(); } -} - -/*************************************************************************/ -/** - * Added to allow do_restart from operserv access to the static functions without making them - * fair game to every other function - not exactly ideal :| - **/ -void do_restart_services() -{ - if (!readonly) { - expire_all(); - save_databases(); - } - services_restart(); exit(1); } |