summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-11-01 20:20:12 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-11-01 20:20:12 +0000
commit11e2a5c8a1b4b8da2c72cbd44facac2128b8fd7b (patch)
tree9997c0a42e1db5a222cd90c7462db14e8e35a108 /src/users.cpp
parent622a6b263a6c180bf9d1301efc2cb9378f743f11 (diff)
Remove now-unneeded 4in6 hacks [danieldg]
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10781 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/users.cpp b/src/users.cpp
index c6f5e498f..848f2a1eb 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1254,12 +1254,8 @@ const char* User::GetIPString()
/* IP addresses starting with a : on irc are a Bad Thing (tm) */
if (*buf == ':')
{
- if (!strncmp(buf, "::ffff:", 7) && isdigit(buf[7])) {
- strlcpy(temp, buf+7, sizeof(temp) - 1);
- } else {
- strlcpy(&temp[1], buf, sizeof(temp) - 1);
- *temp = '0';
- }
+ strlcpy(&temp[1], buf, sizeof(temp) - 1);
+ *temp = '0';
this->cachedip = temp;
return temp;
}