diff options
| author | 2026-03-08 20:20:58 +0000 | |
|---|---|---|
| committer | 2026-03-08 20:20:58 +0000 | |
| commit | fa3c7849d3ab085cdb31ea2fa846436d7ed5f642 (patch) | |
| tree | 673527fc066b92d02ef109f503805abb2c4d9ffc /modules/cloak.cpp | |
| parent | Fix various minor Doxygen issues. (diff) | |
Make the ban checking functions able to check any list mode.
Diffstat (limited to 'modules/cloak.cpp')
| -rw-r--r-- | modules/cloak.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/cloak.cpp b/modules/cloak.cpp index 6c436da7f..4a354350f 100644 --- a/modules/cloak.cpp +++ b/modules/cloak.cpp @@ -438,7 +438,7 @@ public: void Prioritize() override { - ServerInstance->Modules.SetPriority(this, I_OnCheckBan, PRIORITY_LAST); + ServerInstance->Modules.SetPriority(this, I_OnCheckListEntry, PRIORITY_LAST); } void OnChangeHost(User* user, const std::string& host) override @@ -476,7 +476,7 @@ public: } } - ModResult OnCheckBan(User* user, Channel* chan, const std::string& mask, bool full) override + ModResult OnCheckListEntry(ListModeBase* lm, User* user, Channel* chan, const std::string& mask, bool full) override { auto* lu = user->AsLocal(); if (!lu) |
