]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Fixed broken syncing for glines and elines using idents - thanks to dotslasher for...
[user/henk/code/inspircd.git] / src / users.cpp
index 6a37a21c69fd8f9923734fdb84b4bc61aeed24f0..f695db7c47652d0618e0dab0b32956667138b2ae 100644 (file)
@@ -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);