diff options
| author | 2021-12-20 21:00:07 +0000 | |
|---|---|---|
| committer | 2021-12-20 21:00:07 +0000 | |
| commit | c39a2b4c596e1d2217e24e44bd6118c8148c05bc (patch) | |
| tree | fe99bd5177b0857bf31d9c578e29e085cf876a2b /src/modules/m_dnsbl.cpp | |
| parent | Add the final keyword to all remaining classes that can have it. (diff) | |
Fix an unintentionally inverted condition in the dnsbl module.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
| -rw-r--r-- | src/modules/m_dnsbl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index b596b89c1..ee5632f5d 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -171,7 +171,7 @@ class DNSBLResolver final void AddLine(const char* type, const std::string& reason, unsigned long duration, Extra&&... extra) { auto line = new Line(ServerInstance->Time(), duration, ServerInstance->Config->ServerName, reason, std::forward<Extra>(extra)...); - if (ServerInstance->XLines->AddLine(line, nullptr)) + if (!ServerInstance->XLines->AddLine(line, nullptr)) { delete line; return; |
