diff options
author | Sadie Powell <sadie@witchery.services> | 2021-04-17 14:18:50 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-04-17 14:18:50 +0100 |
commit | b0f16081ccaef527ed4b5434a7264508cf455f39 (patch) | |
tree | ef4f14cfd5755c276fe21eedb56ca99da4e9cb25 /src/modules | |
parent | ba8a15adcde58a7db5e00790a55803be9d6d2fda (diff) |
Fix the 'w' extban not being added to the EXTBAN 005 numeric.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_cgiirc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<std::string, std::string>& 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] != ':') |