mirror of
https://github.com/anope/anope.git
synced 2026-06-25 04:16:39 +02:00
Return references instead of pointers from the config system.
We used to return NULL from these methods but now we return an empty block so this can never actually be null now.
This commit is contained in:
@@ -242,7 +242,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
|
||||
/* Initialize config */
|
||||
try
|
||||
{
|
||||
m->OnReload(Config);
|
||||
m->OnReload(*Config);
|
||||
}
|
||||
catch (const ModuleException &ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user