diff options
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/module.cpp b/src/module.cpp index 3e377efec..73ab9ad99 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -1,15 +1,25 @@ -/* Modular support +/* + * Anope IRC Services * - * (C) 2003-2016 Anope Team - * Contact us at team@anope.org + * Copyright (C) 2008-2016 Anope Team <team@anope.org> * - * Please read COPYING and README for further details. + * This file is part of Anope. Anope is free software; you can + * redistribute it and/or modify it under the terms of the GNU + * General Public License as published by the Free Software + * Foundation, version 2. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see see <http://www.gnu.org/licenses/>. */ #include "services.h" #include "modules.h" #include "language.h" -#include "account.h" #ifdef GETTEXT_FOUND # include <libintl.h> @@ -33,7 +43,7 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt if (ModuleManager::FindModule(this->name)) throw CoreException("Module already exists!"); - + if (Anope::NoThird && type & THIRD) throw ModuleException("Third party modules may not be loaded"); @@ -63,11 +73,6 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt Module::~Module() { - UnsetExtensibles(); - - /* Detach all event hooks for this module */ - ModuleManager::DetachAll(this); - IdentifyRequest::ModuleUnload(this); /* Clear any active timers this module has */ TimerManager::DeleteTimersFor(this); @@ -102,10 +107,6 @@ void Module::SetAuthor(const Anope::string &nauthor) this->author = nauthor; } -void Module::Prioritize() -{ -} - ModuleVersion::ModuleVersion(const ModuleVersionC &ver) { version_major = ver.version_major; |