diff options
author | Adam <Adam@anope.org> | 2013-04-10 22:26:40 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-10 22:26:40 -0500 |
commit | 207c46c871e85b55ae66acc456c6bc412c0c79f9 (patch) | |
tree | 27b07dc9d1e0ee068872ec7841920eea9b846b65 /src/module.cpp | |
parent | 957cb2bf93d77a5ebb97d945b0656bd1e7bec164 (diff) |
Move some of the modules in extras/ that arent really extra out of extras. Mark our modules as VENDOR and allow modules to have multple types.
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/module.cpp b/src/module.cpp index a20e7520b..fd7ba63de 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -23,10 +23,19 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt this->created = Anope::CurTime; this->SetVersion(Anope::Version()); + if (type & VENDOR) + this->SetAuthor("Anope"); + else + { + /* Not vendor implies third */ + type |= THIRD; + this->SetAuthor("Unknown"); + } + if (ModuleManager::FindModule(this->name)) throw CoreException("Module already exists!"); - if (Anope::NoThird && modtype == THIRD) + if (Anope::NoThird && type & THIRD) throw ModuleException("Third party modules may not be loaded"); ModuleManager::Modules.push_back(this); |