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:
+7
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user