diff options
author | Sadie Powell <sadie@witchery.services> | 2023-07-06 10:53:25 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-07-06 10:53:25 +0100 |
commit | 098f19c005eb468654a4b2503bf6ffed17a5cfc2 (patch) | |
tree | 32c676b626ad60d5753f7c3fd9de25e4b8f0a7aa /src/config.cpp | |
parent | 4e1f5cce80b11e576ded19126980097ebd8e77b0 (diff) |
Fix a crash when a module tries to get another module's config.
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp index 8287ad6de..8413e59f5 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -626,6 +626,9 @@ Block *Conf::GetModule(const Anope::string &mname) } } + if (!block) + block = &Block::EmptyBlock; + return GetModule(mname); } |