summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-03 20:11:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-03 20:11:51 +0000
commit36244c4ddfdf9dc4196dacb2c2f2159609973b20 (patch)
tree8df6d18897e9d1549250eb7947c015cc53ca1dbb /src/modules
parent66da4ef77e9d22370ebfbab014abe5acefce35f4 (diff)
Make this work on ancient gcc's
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6485 e03df62e-2008-0410-955e-edbf42e46eb7
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))