diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-07 22:18:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-07 22:18:06 +0000 |
commit | 65d60dd9acdb135b61d29339f634c18ee16fd5f4 (patch) | |
tree | 15710267c9bd5366c5d9116e108bfd610872c88b /src/modules | |
parent | b844d1cbbe79585facc69b9247baa8427cff0b62 (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_dnsbl.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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<DNSBLConfEntry *>::iterator i; - while ((i = DNSBLConfEntries.begin()) != DNSBLConfEntries.end()) - { - DNSBLConfEntries.erase(i); + for (std::vector<DNSBLConfEntry *>::iterator i = DNSBLConfEntries.begin(); i != DNSBLConfEntries.end(); i++) delete *i; - } + DNSBLConfEntries.clear(); } /** Fill our conf vector with data |