mirror of
https://github.com/anope/anope.git
synced 2026-07-02 00:06:38 +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:
@@ -159,10 +159,9 @@ class CSEntryMessage : public Module
|
||||
CommandEntryMessage commandentrymsg;
|
||||
|
||||
public:
|
||||
CSEntryMessage(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator), commandentrymsg("ENTRYMSG")
|
||||
CSEntryMessage(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, SUPPORTED), commandentrymsg("ENTRYMSG")
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
this->SetType(CORE);
|
||||
|
||||
if (!chanserv)
|
||||
throw ModuleException("ChanServ is not loaded!");
|
||||
|
||||
Reference in New Issue
Block a user