1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 10:53:12 +02:00

Use module type to determine what type each module is instead of its location in the configuration file.

This commit is contained in:
Adam
2011-04-28 22:44:34 -04:00
parent 8fb1604f64
commit 583954d3a1
203 changed files with 486 additions and 886 deletions
+7 -2
View File
@@ -11,8 +11,6 @@ Base::~Base()
{
(*it)->Invalidate();
}
FOREACH_MOD(I_OnObjectDestroy, OnObjectDestroy(this));
}
void Base::AddReference(dynamic_reference_base *r)
@@ -25,3 +23,10 @@ void Base::DelReference(dynamic_reference_base *r)
this->References.erase(r);
}
void Base::operator delete(void *ptr)
{
Base *b = static_cast<Base *>(ptr);
FOREACH_MOD(I_OnDeleteObject, OnDeleteObject(b));
::operator delete(b);
}