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/inviteexception.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/inviteexception.cpp') diff --git a/modules/inviteexception.cpp b/modules/inviteexception.cpp index 7047ed36f..bcaabda9b 100644 --- a/modules/inviteexception.cpp +++ b/modules/inviteexception.cpp @@ -41,7 +41,7 @@ private: public: InviteException(Module* Creator) - : ListModeBase(Creator, "invex", 'I', RPL_INVEXLIST, RPL_ENDOFINVEXLIST) + : ListModeBase(Creator, "invex", 'I', RPL_INVEXLIST, RPL_ENDOFINVEXLIST, true) , extbanmgr(Creator) { syntax = ""; @@ -99,7 +99,7 @@ public: { for (const auto& entry : *list) { - if (chan->CheckBan(user, entry.mask)) + if (chan->CheckListEntry(&ie, user, entry.mask)) { return MOD_RES_ALLOW; } -- cgit v1.3.1-10-gc9f91