From b0f16081ccaef527ed4b5434a7264508cf455f39 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 17 Apr 2021 14:18:50 +0100 Subject: Fix the 'w' extban not being added to the EXTBAN 005 numeric. --- src/modules/m_cgiirc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index 434043e46..f0963e4c1 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -332,6 +332,11 @@ class ModuleCgiIRC ServerInstance->SNO->EnableSnomask('w', "CGIIRC"); } + void On005Numeric(std::map& tokens) CXX11_OVERRIDE + { + tokens["EXTBAN"].push_back('w'); + } + ModResult OnCheckBan(User* user, Channel*, const std::string& mask) CXX11_OVERRIDE { if (mask.length() <= 2 || mask[0] != 'w' || mask[1] != ':') -- cgit v1.2.3