projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added setServerAddr and isServerAddr to IPAddr.class.php to identify users connecting...
[PHP-P10.git]
/
Bots
/
Stats.class.php
diff --git
a/Bots/Stats.class.php
b/Bots/Stats.class.php
index 4fc06a2ad84d82fc11268257993b26b10335a393..df3db8c1eaa902b3f465946c34f580b7c484aa10 100644
(file)
--- a/
Bots/Stats.class.php
+++ b/
Bots/Stats.class.php
@@
-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->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']++;
}
if($user->getIP()->isIPv6()) $stats['ipv6']++;
else $stats['ipv4']++;
}