From a6b53dbc3629eb329b5b77d81e81ced837d4dc66 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 2 Nov 2015 12:38:14 +0100 Subject: Move ServerConfig::InvBypassModes into core_channel --- src/coremods/core_channel/core_channel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/coremods') diff --git a/src/coremods/core_channel/core_channel.cpp b/src/coremods/core_channel/core_channel.cpp index ec617af13..9febdf1e7 100644 --- a/src/coremods/core_channel/core_channel.cpp +++ b/src/coremods/core_channel/core_channel.cpp @@ -44,8 +44,9 @@ class CoreModChannel : public Module void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { + ConfigTag* optionstag = ServerInstance->Config->ConfValue("options"); Implementation events[] = { I_OnCheckKey, I_OnCheckLimit, I_OnCheckChannelBan }; - if (ServerInstance->Config->InvBypassModes) + if (optionstag->getBool("invitebypassmodes", true)) ServerInstance->Modules.Attach(events, this, sizeof(events)/sizeof(Implementation)); else { -- cgit v1.2.3