diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-03 20:25:57 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-03 20:25:57 +0000 |
commit | 01906d0b74d7952014e3a43d62df352ca187001a (patch) | |
tree | 0905ffc4fe1c1432a46c4df1d6ba3294f19537cd /src/main.c | |
parent | 005d3f9558f349d216823d1bf85f1812e618c877 (diff) |
Don't save databases when rehashed or shutdown from anoperc when in readonly mode
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2855 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 2fa3a8f21..55a979b3e 100644 --- a/src/main.c +++ b/src/main.c @@ -145,6 +145,8 @@ extern void expire_all(void) void save_databases(void) { + if (readonly) + return; waiting = -19; send_event(EVENT_DB_SAVING, 1, EVENT_START); waiting = -2; |