diff options
| author | 2023-08-12 08:41:24 +0100 | |
|---|---|---|
| committer | 2023-08-12 08:41:24 +0100 | |
| commit | 2953c643e7e57899cc4336177b8fca790211f363 (patch) | |
| tree | 0ddc6ecca449df3b13a64831fee3a85c380c8ab2 /src/modules/m_banexception.cpp | |
| parent | Rename the error log level to critical. (diff) | |
Fix list modes unintentionally being case sensitive.
Closes #907.
Diffstat (limited to 'src/modules/m_banexception.cpp')
| -rw-r--r-- | src/modules/m_banexception.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index 6bf6e1348..7b330aca1 100644 --- a/src/modules/m_banexception.cpp +++ b/src/modules/m_banexception.cpp @@ -50,6 +50,17 @@ public: syntax = "<mask>"; } + bool CompareEntry(const std::string& entry, const std::string& value) const override + { + if (extbanmgr) + { + auto res = extbanmgr->CompareEntry(this, entry, value); + if (res != ExtBan::Comparison::NOT_AN_EXTBAN) + return res == ExtBan::Comparison::MATCH; + } + return irc::equals(entry, value); + } + bool ValidateParam(LocalUser* user, Channel* channel, std::string& parameter) override { if (!extbanmgr || !extbanmgr->Canonicalize(parameter)) |
