1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 12:33:13 +02:00

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
This commit is contained in:
Adam-
2010-03-13 20:46:28 +00:00
parent 6cd3b56805
commit 6ee50f852e
2 changed files with 9 additions and 17 deletions
+7 -16
View File
@@ -743,23 +743,14 @@ void ModuleDatabaseBackup(char *dbname)
time(&t);
tm = *localtime(&t);
if (!curday) {
curday = tm.tm_yday;
return;
}
char ext[9];
if (curday != tm.tm_yday) {
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);
}
/*************************************************************************/
+2 -1
View File
@@ -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