only show current IP to self

This commit is contained in:
Shish 2019-11-30 05:07:31 +00:00
parent a07220d29b
commit e926b15d5f

View File

@ -156,7 +156,9 @@ class UserPage extends Extension
}
$event->add_stats("Joined: $h_join_date", 10);
$event->add_stats("Current IP: {$_SERVER['REMOTE_ADDR']}", 80);
if($user->name == $event->display_user->name) {
$event->add_stats("Current IP: {$_SERVER['REMOTE_ADDR']}", 80);
}
$event->add_stats("Class: $h_class", 90);
$av = $event->display_user->get_avatar_html();