This partly backports the changes in #2768. See the previous discussion
here: https://github.com/WoltLab/WCF/pull/2768#discussion_r230306321
and the bug report here: https://community.woltlab.com/thread/277584-ipv6-wird-in-benutzer-online-anzeige-gek%C3%BCrzt/
{if $__wcf->session->getPermission('admin.user.canViewIpAddress')}
<dl class="plain inlineDataList small">
<dt>{lang}wcf.user.usersOnline.ipAddress{/lang}</dt>
- <dd title="{$user->getFormattedIPAddress()}">{$user->getFormattedIPAddress()|truncate:30}</dd>
+ <dd title="{$user->getFormattedIPAddress()}">{$user->getFormattedIPAddress()}</dd>
{if !$user->spiderID}
<dt>{lang}wcf.user.usersOnline.userAgent{/lang}</dt>