git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5369
e03df62e-2008-0410-955e-
edbf42e46eb7
long userrec::GlobalCloneCount()
{
long userrec::GlobalCloneCount()
{
- char u1[128] = {0};
- char u2[128] = {0};
+ char u1[128];
+ char u2[128];
-
- this->GetIPString(u2);
-
for (user_hash::const_iterator a = ServerInstance->clientlist.begin(); a != ServerInstance->clientlist.end(); a++)
{
/* We have to match ip's as strings - we don't know what protocol
* a remote user may be using
*/
for (user_hash::const_iterator a = ServerInstance->clientlist.begin(); a != ServerInstance->clientlist.end(); a++)
{
/* We have to match ip's as strings - we don't know what protocol
* a remote user may be using
*/
- if (strcmp(a->second->GetIPString(u1), u2) == 0)
+ if (strcmp(a->second->GetIPString(u1), this->GetIPString(u2)) == 0)