summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-16 05:52:00 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-16 05:52:00 +0000
commit01994c1ba1ee30352e0ba6a5ff2e9d959dd63f25 (patch)
tree0ed61967e94769069be8cc5d5b27371ac1f38a0a /src
parentec7bc8dd41c9c138457473ced5f71ef01b9c4b70 (diff)
Fixed os_info to backup its databases properly with the now-working ModuleDatabaseBackup function
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2815 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/modules/os_info.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/os_info.c b/src/modules/os_info.c
index 6ee45ce33..7f9e639cc 100644
--- a/src/modules/os_info.c
+++ b/src/modules/os_info.c
@@ -459,7 +459,8 @@ int mSaveData(int argc, char **argv)
**/
int mBackupData(int argc, char **argv)
{
- ModuleDatabaseBackup(OSInfoDBName);
+ if (argc >= 1 && !stricmp(argv[0], EVENT_START))
+ ModuleDatabaseBackup(OSInfoDBName);
return MOD_CONT;
}