mirror of
https://github.com/anope/anope.git
synced 2026-06-25 03:46:36 +02:00
Added a classbase for the major classes, makes dynamic_reference invalidation really work.
This also cleans up a bit of the code in the modestacker.
This commit is contained in:
+2
-10
@@ -37,6 +37,8 @@ Module::~Module()
|
||||
for (i = 0; i < NUM_LANGS; ++i)
|
||||
this->DeleteLanguage(i);
|
||||
|
||||
/* Detach all event hooks for this module */
|
||||
ModuleManager::DetachAll(this);
|
||||
/* Clear any active callbacks this module has */
|
||||
ModuleManager::ClearCallBacks(this);
|
||||
|
||||
@@ -93,13 +95,3 @@ unsigned Version::GetBuild() const
|
||||
return this->Build;
|
||||
}
|
||||
|
||||
Service::Service(Module *o, const Anope::string &n) : owner(o), name(n)
|
||||
{
|
||||
ModuleManager::RegisterService(this);
|
||||
}
|
||||
|
||||
Service::~Service()
|
||||
{
|
||||
ModuleManager::UnregisterService(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user