diff options
| author | 2022-04-05 23:13:10 +0100 | |
|---|---|---|
| committer | 2022-04-05 23:13:10 +0100 | |
| commit | 38c305bf0a7eeaf1b05343ee0718dc0b3f78ce3d (patch) | |
| tree | 4b4cf409f215220d325ce326d4e484e9f8369c0f /src/modules/m_connectban.cpp | |
| parent | Include the module name in the setter for server-added xlines. (diff) | |
Notify opers about the connectban zline being added before applying it.
This matches behaviour elsewhere.
Diffstat (limited to 'src/modules/m_connectban.cpp')
| -rw-r--r-- | src/modules/m_connectban.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp index c24f03080..624ab57ec 100644 --- a/src/modules/m_connectban.cpp +++ b/src/modules/m_connectban.cpp @@ -157,12 +157,12 @@ class ModuleConnectBan CXX11_FINAL delete zl; return; } - ServerInstance->XLines->ApplyLines(); std::string maskstr = mask.str(); ServerInstance->SNO->WriteToSnoMask('x', "Z-line added by module m_connectban on %s to expire in %s (on %s): Connect flooding", maskstr.c_str(), InspIRCd::DurationString(zl->duration).c_str(), InspIRCd::TimeString(zl->expiry).c_str()); ServerInstance->SNO->WriteGlobalSno('a', "Connect flooding from IP range %s (%d)", maskstr.c_str(), threshold); connects.erase(i); + ServerInstance->XLines->ApplyLines(); } } else |
