summaryrefslogtreecommitdiff
path: root/src/modules/os_info.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-19 00:22:46 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-19 00:22:46 +0000
commit23f5e9de79047b448282d6984db3f12511b751eb (patch)
tree81f30ef738acc2c2f12f6e7327f729e20d9d39e1 /src/modules/os_info.c
parent6c1d764c4ff6901456b9df55727d7e80d0aa76c8 (diff)
Move last of events that are in the core distro over to newevents.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2115 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/os_info.c')
-rw-r--r--src/modules/os_info.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/modules/os_info.c b/src/modules/os_info.c
index 22d45a61b..c3d05fb85 100644
--- a/src/modules/os_info.c
+++ b/src/modules/os_info.c
@@ -46,7 +46,6 @@ void mMainChanHelp(User *u);
void mMainNickHelp(User *u);
int mLoadData();
-int mBackupData(int argc, char **argv);
int mLoadConfig();
static Module *me;
@@ -304,9 +303,7 @@ class OSInfo : public Module
status = this->AddCommand(CHANSERV, new CommandCSInfo(), MOD_TAIL);
ModuleManager::Attach(I_OnSaveDatabase, this);
-
- hook = createEventHook(EVENT_DB_BACKUP, mBackupData);
- status = this->AddEventHook(hook);
+ ModuleManager::Attach(I_OnBackupDatabase, this);
this->SetNickHelp(mMainNickHelp);
this->SetChanHelp(mMainChanHelp);
@@ -601,6 +598,11 @@ class OSInfo : public Module
}
}
+ void OnBackupDatabase()
+ {
+ ModuleDatabaseBackup(OSInfoDBName);
+ }
+
};
/*************************************************************************/
@@ -667,17 +669,6 @@ int mLoadData()
}
/**
- * Backup our databases using the commands provided by Anope
- * @return MOD_CONT
- **/
-int mBackupData(int argc, char **argv)
-{
- ModuleDatabaseBackup(OSInfoDBName);
-
- return MOD_CONT;
-}
-
-/**
* Load the configuration directives from Services configuration file.
* @return 0 for success
**/