1
0
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:
Adam
2010-08-22 00:34:02 -04:00
parent 8a4c6ae618
commit ada65a3baf
12 changed files with 144 additions and 215 deletions
+2 -10
View File
@@ -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);
}