summaryrefslogtreecommitdiff
path: root/src/base64.cpp
diff options
context:
space:
mode:
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;
-}