diff options
| author | 2026-03-08 20:20:58 +0000 | |
|---|---|---|
| committer | 2026-03-08 20:20:58 +0000 | |
| commit | fa3c7849d3ab085cdb31ea2fa846436d7ed5f642 (patch) | |
| tree | 673527fc066b92d02ef109f503805abb2c4d9ffc /modules/inviteexception.cpp | |
| parent | Fix various minor Doxygen issues. (diff) | |
| download | inspircd++-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.cpp | 4 |
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; } |
