From 207c46c871e85b55ae66acc456c6bc412c0c79f9 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 10 Apr 2013 22:26:40 -0500 Subject: 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. --- src/module.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/module.cpp') 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); -- cgit