summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-06 19:25:58 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-06 19:25:58 +0000
commit2087510e0eaadbb6decb6104a0104e8706b48939 (patch)
treed697cfca8898f57aa2eede603601889b64fd9b29 /src
parentddf1d3a50e58bd7e65a18ad6c26d70951450f15b (diff)
Apply patch for bug #165 (compile warning for users.cpp) by peaveydk
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5660 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 6a37a21c6..f695db7c4 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -180,8 +180,8 @@ void UserResolver::OnLookupComplete(const std::string &result)
/* Check we didnt time out */
if (this->bound_user->registered != REG_ALL)
{
+#ifdef IPV6
const char *ip = this->bound_user->GetIPString();
-#ifdef IPv6
bound_user->res_forward = new UserResolver(this->ServerInstance, this->bound_user, result, (strstr(ip,"0::ffff:") == ip ? DNS_QUERY_A : DNS_QUERY_AAAA));
#else
bound_user->res_forward = new UserResolver(this->ServerInstance, this->bound_user, result, DNS_QUERY_A);