From 641b2d07ab6868a9fa6726c1bc36cde80005e155 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 7 Feb 2019 12:16:33 +0000 Subject: ModuleManager: remove fakederef. --- src/modules/m_clearchan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_clearchan.cpp') 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& exception) override -- cgit v1.3.1-10-gc9f91