diff options
Diffstat (limited to 'src/modes/cmode_h.cpp')
-rw-r--r-- | src/modes/cmode_h.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes/cmode_h.cpp b/src/modes/cmode_h.cpp index 7f32ad344..5137bfd4a 100644 --- a/src/modes/cmode_h.cpp +++ b/src/modes/cmode_h.cpp @@ -16,7 +16,7 @@ #include "modes/cmode_h.h" extern InspIRCd* ServerInstance; -extern ServerConfig* Config; +extern InspIRCd* ServerInstance; extern std::vector<Module*> modules; extern std::vector<ircd_module*> factory; extern int MODCOUNT; @@ -48,7 +48,7 @@ ModeAction ModeChannelHalfOp::OnModeChange(userrec* source, userrec* dest, chanr /* If halfops are not enabled in the conf, we don't execute * anything in this class at all. */ - if (!Config->AllowHalfop) + if (!ServerInstance->Config->AllowHalfop) { parameter = ""; return MODEACTION_DENY; |