aboutsummaryrefslogtreecommitdiffstats
path: root/modules/inviteexception.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-08 20:20:58 +0000
committerGravatar Sadie Powell2026-03-08 20:20:58 +0000
commitfa3c7849d3ab085cdb31ea2fa846436d7ed5f642 (patch)
tree673527fc066b92d02ef109f503805abb2c4d9ffc /modules/inviteexception.cpp
parentFix various minor Doxygen issues. (diff)
downloadinspircd++-fa3c7849d3ab085cdb31ea2fa846436d7ed5f642.tar.gz
inspircd++-fa3c7849d3ab085cdb31ea2fa846436d7ed5f642.tar.bz2
inspircd++-fa3c7849d3ab085cdb31ea2fa846436d7ed5f642.zip
Make the ban checking functions able to check any list mode.
Diffstat (limited to 'modules/inviteexception.cpp')
-rw-r--r--modules/inviteexception.cpp4
1 files changed, 2 insertions, 2 deletions
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 = "<mask>";
@@ -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;
}