added setServerAddr and isServerAddr to IPAddr.class.php to identify users connecting...
[PHP-P10.git] / Bots / Stats.class.php
index 4fc06a2ad84d82fc11268257993b26b10335a393..df3db8c1eaa902b3f465946c34f580b7c484aa10 100644 (file)
@@ -146,7 +146,7 @@ class {$_NAME} extends Bot {
                        if($user->isAway()) $stats['away']++;
                        else $stats['here']++;
                        if($user->getModes()->hasMode('o')) $stats['opers']++;
-                       if($user->getIP()->isLocalAddress()) $stats['local']++;
+                       if($user->getIP()->isLocalAddress(true)) $stats['local']++;
                        if($user->getIP()->isIPv6()) $stats['ipv6']++;
                        else $stats['ipv4']++;
                }