diff options
| author | 2025-04-16 12:13:11 +0100 | |
|---|---|---|
| committer | 2025-04-16 12:13:11 +0100 | |
| commit | a3e736de1d3b6423e88b58506c0bfbe89dec3bd3 (patch) | |
| tree | 04ffa9b7f162c00c5ce4f5da11344ff02622660a /modules/banexception.cpp | |
| parent | Refuse to hash passwords using insecure algorithms in MKPASSWD. (diff) | |
Add <security:banrealmask>.
Diffstat (limited to 'modules/banexception.cpp')
| -rw-r--r-- | modules/banexception.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/banexception.cpp b/modules/banexception.cpp index 3c743b5d9..c606ac440 100644 --- a/modules/banexception.cpp +++ b/modules/banexception.cpp @@ -91,7 +91,7 @@ public: tokens["EXCEPTS"] = ConvToStr(be.GetModeChar()); } - ModResult OnExtBanCheck(User* user, Channel* chan, ExtBan::Base* extban) override + ModResult OnExtBanCheck(User* user, Channel* chan, ExtBan::Base* extban, bool full) override { ListModeBase::ModeList* list = be.GetList(chan); if (!list) @@ -118,12 +118,12 @@ public: continue; } - return extban->IsMatch(user, chan, value) != inverted ? MOD_RES_ALLOW : MOD_RES_PASSTHRU; + return extban->IsMatch(user, chan, value, full) != inverted ? MOD_RES_ALLOW : MOD_RES_PASSTHRU; } return MOD_RES_PASSTHRU; } - ModResult OnCheckChannelBan(User* user, Channel* chan) override + ModResult OnCheckChannelBan(User* user, Channel* chan, bool full) override { ListModeBase::ModeList* list = be.GetList(chan); if (!list) @@ -134,7 +134,7 @@ public: for (const auto& entry : *list) { - if (chan->CheckBan(user, entry.mask)) + if (chan->CheckBan(user, entry.mask, full)) { // They match an entry on the list, so let them in. return MOD_RES_ALLOW; |
