summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_dnsbl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index 6ea05e6fa..2eae637b1 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -278,7 +278,7 @@ class ModuleDNSBL : public Module
/* We could have an ipv6 address here */
std::string x = user->GetIPString();
/* Is it a 4in6 address? (Compensate for this kernel kludge that people love) */
- if (x.find("0::ffff:") == x.begin())
+ if (x.find("0::ffff:") == 0)
{
x.erase(x.begin(), x.begin() + 8);
if (inet_aton(x.c_str(), &in))