summaryrefslogtreecommitdiff
path: root/src/base64.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-09 23:43:11 -0400
committerAdam <Adam@anope.org>2010-09-09 23:43:11 -0400
commit46813ccb8c6ab572b8a9ff0a39afb1d92dc4482b (patch)
tree562da502a102230ce207bbe921fdc978ee71e20c /src/base64.cpp
parentfdd196e50b4616ac377bd0ee0ae5ce6c57b657ee (diff)
Added an asynchronous DNS system and m_dnsbl, which checks clients against DNS blacklists.
Rewrote internal handling of IPs, we now properly support users using IPv6. Fixed a few problems with the UnrealIRCd protocol module.
Diffstat (limited to 'src/base64.cpp')
-rw-r--r--src/base64.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/base64.cpp b/src/base64.cpp
index 4f51eb5e8..cddfb273f 100644
--- a/src/base64.cpp
+++ b/src/base64.cpp
@@ -161,17 +161,3 @@ void b64_decode(const Anope::string &src, Anope::string &target)
target.erase(target.length() - 1);
}
-int decode_ip(const Anope::string &buf)
-{
- int len = buf.length();
- Anope::string targ;
-
- b64_decode(buf, targ);
- const struct in_addr ia = *reinterpret_cast<const struct in_addr *>(targ.c_str());
- if (len == 24) /* IPv6 */
- return 0;
- else if (len == 8) /* IPv4 */
- return ia.s_addr;
- else /* Error?? */
- return 0;
-}