Clone counting works with ipv6 now

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4621 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-08-01 19:17:30 +00:00
parent 145862efc7
commit cf2836550f

View File

@ -182,14 +182,14 @@ class cmd_check : public command_t
for (user_hash::const_iterator a = clientlist.begin(); a != clientlist.end(); a++)
{
#ifdef IPV6
/* TODO: Clone matching for IPV6 ips */
if (!memcmp(addr.sin6_addr.s6_addr, a->second->ip4.s6_addr, sizeof(in6_addr)))
#else
if (addr.sin_addr.s_addr == a->second->ip4.s_addr)
#endif
{
/* same IP. */
Srv->SendTo(NULL, user, checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
}
#endif
}
}