]> jfr.im git - solanum.git/commitdiff
extensions/m_webirc: win32 fixes
authorWilliam Pitcock <redacted>
Sun, 20 Mar 2016 07:26:30 +0000 (02:26 -0500)
committerWilliam Pitcock <redacted>
Sun, 20 Mar 2016 07:26:30 +0000 (02:26 -0500)
extensions/m_webirc.c

index cf849efe44aaee68f6edabce99dbfdcd9cceaf42..99f66b5b6fca20198ae4253ddd762bd5dcba2802 100644 (file)
@@ -92,7 +92,7 @@ mr_webirc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
                                IsGotId(client_p) ? client_p->username : "webirc",
                                IsGotId(client_p) ? client_p->username : "webirc",
                                (struct sockaddr *) &client_p->localClient->ip,
                                IsGotId(client_p) ? client_p->username : "webirc",
                                IsGotId(client_p) ? client_p->username : "webirc",
                                (struct sockaddr *) &client_p->localClient->ip,
-                               client_p->localClient->ip.ss_family, NULL);
+                               GET_SS_FAMILY(&client_p->localClient->ip), NULL);
        if (aconf == NULL || !(aconf->status & CONF_CLIENT))
                return;
        if (!IsConfDoSpoofIp(aconf) || irccmp(aconf->info.name, "webirc."))
        if (aconf == NULL || !(aconf->status & CONF_CLIENT))
                return;
        if (!IsConfDoSpoofIp(aconf) || irccmp(aconf->info.name, "webirc."))
@@ -145,7 +145,7 @@ mr_webirc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
 
        /* Check dlines now, klines will be checked on registration */
        if((aconf = find_dline((struct sockaddr *)&source_p->localClient->ip,
 
        /* Check dlines now, klines will be checked on registration */
        if((aconf = find_dline((struct sockaddr *)&source_p->localClient->ip,
-                              source_p->localClient->ip.ss_family)))
+                              GET_SS_FAMILY(&source_p->localClient->ip))))
        {
                if(!(aconf->status & CONF_EXEMPTDLINE))
                {
        {
                if(!(aconf->status & CONF_EXEMPTDLINE))
                {