From 2087510e0eaadbb6decb6104a0104e8706b48939 Mon Sep 17 00:00:00 2001 From: special Date: Mon, 6 Nov 2006 19:25:58 +0000 Subject: [PATCH] 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 --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5