--- Unreal3.2.7/src/modules/m_pass.c    2006-03-14 14:47:08.000000000 -0500
+++ Unreal3.2.7.mods/src/modules/m_pass.c       2007-09-18 07:00:01.000000000 -0400
@@ -155,8 +155,9 @@ int docgiirc(aClient *cptr, char *ip, ch
                host = NULL; /* host did not resolve, make it NULL */

        /* STEP 1: Update cptr->ip */
-       if (inet_pton(AFINET, ip, &cptr->ip) <= 0)
+       if ((inet_pton(AF_INET, ip, &cptr->ip) <= 0) && (inet_pton(AF_INET6, ip, &cptr->ip) <= 0)) {
                return exit_client(cptr, cptr, &me, "Invalid IP address");
+       }

        /* STEP 2: Update GetIP() */
        if (cptr->user)
