1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

Fix stripping of ip addresses

This commit is contained in:
Tim Düsterhus 2016-08-17 20:51:23 +02:00
parent 85f36a4781
commit f4eb305cf1

View File

@ -144,14 +144,13 @@ public function jsonify($raw = false) {
case self::TYPE_INFORMATION:
$separator = ':';
break;
case self::TYPE_JOIN:
unset($additionalData['ipAddress']);
break;
default:
$separator = '';
break;
}
if ($this->type == self::TYPE_JOIN) unset($additionalData['ipAddress']);
$array = array(
'formattedUsername' => $this->getUsername(true),
'formattedMessage' => $this->getFormattedMessage('text/html'),