From 4840d5e77572f42b710501912d59b5dbb6d2c2af Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 28 Oct 2007 18:33:06 +0000 Subject: - Tear out a useless load of XLine clutters that did nothing much except confuse things - Revert back to early 1.0 design of using a single list for line storage. We'll make this work more efficiently than 1.0 though of course. This simplifies the code for expiry, checking, etc. - Merge a bunch of sort callbacks into a single sort callback for class XLine. - Horribly break apply_lines() for the time being. .. and that's probably it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8398 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dnsbl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_dnsbl.cpp') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index c92a2c111..1d99943d5 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -115,7 +115,7 @@ class DNSBLResolver : public Resolver { std::string ban = std::string("*@") + them->GetIPString(); if (show) - ServerInstance->XLines->apply_lines(APPLY_KLINES); + ServerInstance->XLines->apply_lines(); show = ServerInstance->XLines->add_kline(ConfEntry->duration, ServerInstance->Config->ServerName, reason.c_str(), ban.c_str()); FOREACH_MOD(I_OnAddKLine,OnAddKLine(ConfEntry->duration, NULL, reason, ban)); break; @@ -125,7 +125,7 @@ class DNSBLResolver : public Resolver std::string ban = std::string("*@") + them->GetIPString(); show = ServerInstance->XLines->add_gline(ConfEntry->duration, ServerInstance->Config->ServerName, reason.c_str(), ban.c_str()); if (show) - ServerInstance->XLines->apply_lines(APPLY_GLINES); + ServerInstance->XLines->apply_lines(); FOREACH_MOD(I_OnAddGLine,OnAddGLine(ConfEntry->duration, NULL, reason, ban)); break; } @@ -133,7 +133,7 @@ class DNSBLResolver : public Resolver { show = ServerInstance->XLines->add_zline(ConfEntry->duration, ServerInstance->Config->ServerName, reason.c_str(), them->GetIPString()); if (show) - ServerInstance->XLines->apply_lines(APPLY_ZLINES); + ServerInstance->XLines->apply_lines(); FOREACH_MOD(I_OnAddZLine,OnAddZLine(ConfEntry->duration, NULL, reason, them->GetIPString())); break; } -- cgit v1.3.1-10-gc9f91