]> jfr.im git - solanum.git/blobdiff - modules/m_whois.c
ipv4_from_ipv6: move to librb
[solanum.git] / modules / m_whois.c
index 5f7b42d134fee751196c9e46eceb8feb023226b7..a43b9109dc8022c81f5591edefa34a3feef0ba44 100644 (file)
@@ -40,7 +40,6 @@
 #include "modules.h"
 #include "hook.h"
 #include "s_newconf.h"
-#include "ipv4_from_ipv6.h"
 #include "ratelimit.h"
 #include "s_assert.h"
 
@@ -369,7 +368,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
                if (GET_SS_FAMILY(&target_p->localClient->ip) == AF_INET6 &&
                                (show_ip(source_p, target_p) ||
                                 (source_p == target_p && !IsIPSpoof(target_p))) &&
-                               ipv4_from_ipv6((struct sockaddr_in6 *)&target_p->localClient->ip, &ip4))
+                               rb_ipv4_from_ipv6((struct sockaddr_in6 *)&target_p->localClient->ip, &ip4))
                {
                        rb_inet_ntop_sock((struct sockaddr *)&ip4,
                                        buf, sizeof buf);