]> jfr.im git - solanum.git/blobdiff - modules/m_etrace.c
Merge branch 'master' into release/4
[solanum.git] / modules / m_etrace.c
index 3a0f5e18d74e74bbba50237f58c6899a0415204f..064206ae54b7db2b9d4fc887c3abfe99c153b107 100644 (file)
@@ -35,7 +35,6 @@
 #include "hook.h"
 #include "client.h"
 #include "hash.h"
-#include "common.h"
 #include "hash.h"
 #include "match.h"
 #include "ircd.h"
@@ -165,8 +164,8 @@ do_etrace(struct Client *source_p, int ipv4, int ipv6)
                target_p = ptr->data;
 
 #ifdef RB_IPV6
-               if((!ipv4 && target_p->localClient->ip.ss_family == AF_INET) ||
-                  (!ipv6 && target_p->localClient->ip.ss_family == AF_INET6))
+               if((!ipv4 && GET_SS_FAMILY(&target_p->localClient->ip) == AF_INET) ||
+                  (!ipv6 && GET_SS_FAMILY(&target_p->localClient->ip) == AF_INET6))
                        continue;
 #endif