From fa3c7849d3ab085cdb31ea2fa846436d7ed5f642 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 8 Mar 2026 20:20:58 +0000 Subject: Make the ban checking functions able to check any list mode. --- modules/cloak.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/cloak.cpp') 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) -- cgit v1.3.1-10-gc9f91