diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-03 20:11:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-03 20:11:51 +0000 |
commit | 36244c4ddfdf9dc4196dacb2c2f2159609973b20 (patch) | |
tree | 8df6d18897e9d1549250eb7947c015cc53ca1dbb | |
parent | 66da4ef77e9d22370ebfbab014abe5acefce35f4 (diff) |
Make this work on ancient gcc's
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6485 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_dnsbl.cpp | 2 |
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)) |