mirror of
https://github.com/anope/anope.git
synced 2026-07-07 04:03:12 +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:
@@ -310,7 +310,7 @@ class HSRequest : public Module
|
||||
CommandHSWaiting commandhswaiting;
|
||||
|
||||
public:
|
||||
HSRequest(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
|
||||
HSRequest(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, SUPPORTED)
|
||||
{
|
||||
me = this;
|
||||
|
||||
@@ -323,7 +323,6 @@ class HSRequest : public Module
|
||||
this->AddCommand(hostserv->Bot(), &commandhswaiting);
|
||||
|
||||
this->SetAuthor("Anope");
|
||||
this->SetType(SUPPORTED);
|
||||
|
||||
Implementation i[] = { I_OnPreCommand, I_OnDatabaseRead, I_OnDatabaseWrite, I_OnReload };
|
||||
ModuleManager::Attach(i, this, 4);
|
||||
|
||||
Reference in New Issue
Block a user