summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-13 20:46:28 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-13 20:46:28 +0000
commit6ee50f852e29e176581279b97cd5479fc2c5c2e6 (patch)
tree0e04302734b94c2dfa62e8c44b3bc525250148af
parent6cd3b56805ed03327f9abe5e5fcc616c9b12a2f9 (diff)
Fixed bug #1140 - Made ModuleDatabaseBackup() not fail when multiple modules want to back up their databases
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2811 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/datafiles.c23
-rw-r--r--version.log3
2 files changed, 9 insertions, 17 deletions
diff --git a/src/datafiles.c b/src/datafiles.c
index 2b09b6c3e..2c2fb94fc 100644
--- a/src/datafiles.c
+++ b/src/datafiles.c
@@ -743,23 +743,14 @@ void ModuleDatabaseBackup(char *dbname)
time(&t);
tm = *localtime(&t);
- if (!curday) {
- curday = tm.tm_yday;
- return;
- }
-
- if (curday != tm.tm_yday) {
-
- char ext[9];
+ char ext[9];
- if (debug) {
- alog("Module Database Backing up %s", dbname);
- }
- ModuleRemoveBackups(dbname);
- curday = tm.tm_yday;
- strftime(ext, sizeof(ext), "%Y%m%d", &tm);
- rename_database(dbname, ext);
- }
+ if (debug)
+ alog("Module Database Backing up %s", dbname);
+ ModuleRemoveBackups(dbname);
+ curday = tm.tm_yday;
+ strftime(ext, sizeof(ext), "%Y%m%d", &tm);
+ rename_database(dbname, ext);
}
/*************************************************************************/
diff --git a/version.log b/version.log
index d5f135977..1084719ea 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="2810"
+VERSION_BUILD="2811"
# $Log$ # Changes since 1.8.3 Release
+#Revision 2811 - Fixed bug #1140 - Made ModuleDatabaseBackup() not fail when multiple modules want to back up their databases
#Revision 2810 - Fixed bug #1139 - Delete the correct nicks from hs_request database when they are dropped
#Revision 2809 - Fixed bug #1138 - Fix maximum hostname length checking in hs_request
#Revision 2808 - Fixed check_ban to apply bans even if TTB was changed after the user has been kicked