diff options
| author | 2021-08-11 00:45:15 +0100 | |
|---|---|---|
| committer | 2021-08-17 13:50:51 +0100 | |
| commit | 06a96d121febdc2d42208cbde4cd3f908649452e (patch) | |
| tree | 16baec1deeb5bd5fac4cfac0e75329bb6d1e7d8b /src/modules/m_clearchan.cpp | |
| parent | Reorder some functions in the ModuleManager class. (diff) | |
Add a detach method that takes an Implementation array.
Diffstat (limited to 'src/modules/m_clearchan.cpp')
| -rw-r--r-- | src/modules/m_clearchan.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_clearchan.cpp b/src/modules/m_clearchan.cpp index 7d726fafd..b8710a56a 100644 --- a/src/modules/m_clearchan.cpp +++ b/src/modules/m_clearchan.cpp @@ -157,7 +157,8 @@ class ModuleClearChan : public Module void init() override { // Only attached while we are working; don't react to events otherwise - ServerInstance->Modules.DetachAll(this); + Implementation events[] = { I_OnBuildNeighborList, I_OnUserKick }; + ServerInstance->Modules.Detach(events, this, sizeof(events)/sizeof(Implementation)); } void OnBuildNeighborList(User* source, IncludeChanList& include, std::map<User*, bool>& exception) override |
