diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-01 19:17:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-01 19:17:30 +0000 |
commit | cf2836550f864e162923b8db82d1758b7fb77175 (patch) | |
tree | fc534256d19010ccafaabf9ece696083b662bc10 /src/modules/m_check.cpp | |
parent | 145862efc772da990aa2c7fbd5000a81e8476b8b (diff) |
Clone counting works with ipv6 now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4621 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r-- | src/modules/m_check.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index e41e60b80..70c17ba1b 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -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 } } |