From 36244c4ddfdf9dc4196dacb2c2f2159609973b20 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 3 Feb 2007 20:11:51 +0000 Subject: Make this work on ancient gcc's git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6485 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dnsbl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit v1.2.3