summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-03 20:25:57 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-03 20:25:57 +0000
commit01906d0b74d7952014e3a43d62df352ca187001a (patch)
tree0905ffc4fe1c1432a46c4df1d6ba3294f19537cd
parent005d3f9558f349d216823d1bf85f1812e618c877 (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
-rw-r--r--src/main.c2
-rw-r--r--version.log3
2 files changed, 4 insertions, 1 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;
diff --git a/version.log b/version.log
index ca17cfa5b..cfdf9dc30 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,11 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="3"
VERSION_EXTRA="-svn"
-VERSION_BUILD="2853"
+VERSION_BUILD="2855"
# $Log$ # Changes since 1.8.3 Release
+#Revision 2855 - Don't save databases when rehashed or shutdown from anoperc when in readonly mode
#Revision 2843 - Fixed catserv module demo to work correctly on TS6 IRCds
#Revision 2842 - Fixed bug #1149 - Number memos in MySQL correctly
#Revision 2841 - Fixed bugs #1146 and #1147 - Fixed check_modes to only apply defcon settings when defcon is actually on