diff options
| author | Sadie Powell <sadie@witchery.services> | 2025-04-19 12:47:52 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2025-04-19 12:49:06 +0100 |
| commit | d81590639331f9b233d3e16512aeb01f5c024a16 (patch) | |
| tree | 12cc140e7e9de0750108aa8830a65205b3246280 /modules/operserv/os_defcon.cpp | |
| parent | 452e62c05021b29b4f0641245cafa6ae115e2198 (diff) | |
Get rid of the internal block wrapper.
This only existed for compatibility with old 2.0 modules and 2.1
has already broken compatibility with them.
Diffstat (limited to 'modules/operserv/os_defcon.cpp')
| -rw-r--r-- | modules/operserv/os_defcon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/operserv/os_defcon.cpp b/modules/operserv/os_defcon.cpp index 0965b0961..9fd47c659 100644 --- a/modules/operserv/os_defcon.cpp +++ b/modules/operserv/os_defcon.cpp @@ -338,7 +338,7 @@ public: DefconConfig dconfig; { - Configuration::Block &block = conf.GetModule(this); + const auto &block = conf.GetModule(this); dconfig.defaultlevel = block.Get<int>("defaultlevel"); dconfig.defcons[4] = block.Get<const Anope::string>("level4"); dconfig.defcons[3] = block.Get<const Anope::string>("level3"); @@ -355,7 +355,7 @@ public: } { - Configuration::Block &block = conf.GetModule("os_session"); + const auto &block = conf.GetModule("os_session"); dconfig.max_session_kill = block.Get<int>("maxsessionkill"); dconfig.session_autokill_expiry = block.Get<time_t>("sessionautokillexpiry"); dconfig.sle_reason = block.Get<const Anope::string>("sessionlimitexceeded"); |
