mirror of
https://github.com/anope/anope.git
synced 2026-07-08 00:23:14 +02:00
os_defcon: find module by name, it might not be loaded yet
This commit is contained in:
@@ -354,8 +354,7 @@ class OSDefcon : public Module
|
||||
dconfig.message = block->Get<const Anope::string>("message");
|
||||
dconfig.offmessage = block->Get<const Anope::string>("offmessage");
|
||||
|
||||
Module *session = ModuleManager::FindModule("os_session");
|
||||
block = conf->GetModule(session);
|
||||
block = conf->GetModule("os_session");
|
||||
|
||||
dconfig.max_session_kill = block->Get<int>("maxsessionkill");
|
||||
dconfig.session_autokill_expiry = block->Get<time_t>("sessionautokillexpiry");
|
||||
|
||||
Reference in New Issue
Block a user