1
0
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:
Adam
2016-07-10 20:51:03 -04:00
parent b2d670298b
commit d427772bd3
+1 -2
View File
@@ -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");