mirror of
https://github.com/anope/anope.git
synced 2026-07-10 05:23:14 +02:00
Use module type to determine what type each module is instead of its location in the configuration file.
This commit is contained in:
@@ -371,10 +371,9 @@ class DBPlain : public Module
|
||||
/* Backup file names */
|
||||
std::list<Anope::string> Backups;
|
||||
public:
|
||||
DBPlain(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
|
||||
DBPlain(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, DATABASE)
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
this->SetType(DATABASE);
|
||||
|
||||
Implementation i[] = { I_OnReload, I_OnDatabaseRead, I_OnLoadDatabase, I_OnDatabaseReadMetadata, I_OnSaveDatabase, I_OnModuleLoad };
|
||||
ModuleManager::Attach(i, this, 6);
|
||||
|
||||
Reference in New Issue
Block a user