From 01994c1ba1ee30352e0ba6a5ff2e9d959dd63f25 Mon Sep 17 00:00:00 2001 From: Adam- Date: Tue, 16 Mar 2010 05:52:00 +0000 Subject: 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 --- src/modules/os_info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') 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; } -- cgit