1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Convert ip6 to ip4 in InfoCommand

This commit is contained in:
Tim Düsterhus 2013-02-01 22:46:43 +01:00
parent 0573d4469e
commit cdd2385b08

View File

@ -48,7 +48,7 @@ public function __construct(\chat\system\command\CommandHandler $commandHandler)
if (WCF::getSession()->getPermission('admin.user.canViewIpAddress')) { if (WCF::getSession()->getPermission('admin.user.canViewIpAddress')) {
$session = $this->fetchSession(); $session = $this->fetchSession();
if ($session) { if ($session) {
$this->lines[WCF::getLanguage()->get('wcf.user.ipAddress')] = $session->ipAddress; $this->lines[WCF::getLanguage()->get('wcf.user.ipAddress')] = \wcf\util\UserUtil::convertIPv6To4($session->ipAddress);
} }
} }