mirror of
https://github.com/anope/anope.git
synced 2026-06-28 22:46:38 +02:00
Fix module event prioritization which was broken with the newer
auto-attach event stuff. Also remove logically dead code from os_defcon, and make os_defcon akill similar masks to os_session when enforcing session akills. Fixes #1618 which relies on os_session to be prioritized before os_defcon.
This commit is contained in:
@@ -101,6 +101,10 @@ void Module::SetAuthor(const Anope::string &nauthor)
|
||||
this->author = nauthor;
|
||||
}
|
||||
|
||||
void Module::Prioritize()
|
||||
{
|
||||
}
|
||||
|
||||
ModuleVersion::ModuleVersion(int maj, int min, int pa) : version_major(maj), version_minor(min), version_patch(pa)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -265,6 +265,8 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
|
||||
for (unsigned i = 0; i < I_SIZE; ++i)
|
||||
EventHandlers[i].push_back(m);
|
||||
|
||||
m->Prioritize();
|
||||
|
||||
FOREACH_MOD(OnModuleLoad, (u, m));
|
||||
|
||||
return MOD_ERR_OK;
|
||||
|
||||
Reference in New Issue
Block a user