From 65d60dd9acdb135b61d29339f634c18ee16fd5f4 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 7 Feb 2007 22:18:06 +0000 Subject: Consider your crackpipes confiscated, there was some right dailywtf-worthy stuff in here. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6547 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dnsbl.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 1cd08024b..c2f666c7e 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -34,6 +34,7 @@ class DNSBLConfEntry long duration; int bitmask; DNSBLConfEntry(): duration(86400),bitmask(0) {} + ~DNSBLConfEntry() { } }; @@ -179,11 +180,9 @@ class ModuleDNSBL : public Module void ClearEntries() { std::vector::iterator i; - while ((i = DNSBLConfEntries.begin()) != DNSBLConfEntries.end()) - { - DNSBLConfEntries.erase(i); + for (std::vector::iterator i = DNSBLConfEntries.begin(); i != DNSBLConfEntries.end(); i++) delete *i; - } + DNSBLConfEntries.clear(); } /** Fill our conf vector with data -- cgit v1.2.3