mirror of
https://github.com/anope/anope.git
synced 2026-06-28 12:06:37 +02:00
Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in.
This commit is contained in:
@@ -229,10 +229,9 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
|
||||
/* If the module is hooked to the reload event it wants to initialize its config here */
|
||||
if (std::find(EventHandlers[I_OnReload].begin(), EventHandlers[I_OnReload].end(), m) != EventHandlers[I_OnReload].end())
|
||||
{
|
||||
ConfigReader reader;
|
||||
try
|
||||
{
|
||||
m->OnReload(Config, reader);
|
||||
m->OnReload(Config);
|
||||
}
|
||||
catch (const ConfigException &ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user