aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_clearchan.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-02-07 12:16:33 +0000
committerGravatar Sadie Powell2019-02-07 12:16:33 +0000
commit641b2d07ab6868a9fa6726c1bc36cde80005e155 (patch)
tree00f6f16cef0464477d4a890b3c21793557c2c537 /src/modules/m_clearchan.cpp
parentModeParser: remove fakederef. (diff)
ModuleManager: remove fakederef.
Diffstat (limited to 'src/modules/m_clearchan.cpp')
-rw-r--r--src/modules/m_clearchan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_clearchan.cpp b/src/modules/m_clearchan.cpp
index 41c681cf5..99b55fb85 100644
--- a/src/modules/m_clearchan.cpp
+++ b/src/modules/m_clearchan.cpp
@@ -89,7 +89,7 @@ class CommandClearChan : public Command
// Attach to the appropriate hook so we're able to hide the QUIT/KICK messages
Implementation hook = (kick ? I_OnUserKick : I_OnBuildNeighborList);
- ServerInstance->Modules->Attach(hook, creator);
+ ServerInstance->Modules.Attach(hook, creator);
std::string mask;
// Now remove all local non-opers from the channel
@@ -132,7 +132,7 @@ class CommandClearChan : public Command
ServerInstance->Users->QuitUser(curr, reason);
}
- ServerInstance->Modules->Detach(hook, creator);
+ ServerInstance->Modules.Detach(hook, creator);
if (xlf)
ServerInstance->XLines->ApplyLines();
@@ -153,7 +153,7 @@ class ModuleClearChan : public Module
void init() override
{
// Only attached while we are working; don't react to events otherwise
- ServerInstance->Modules->DetachAll(this);
+ ServerInstance->Modules.DetachAll(this);
}
void OnBuildNeighborList(User* source, IncludeChanList& include, std::map<User*, bool>& exception) override