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:
parent
85f36a4781
commit
f4eb305cf1
@ -144,13 +144,12 @@ public function jsonify($raw = false) {
|
|||||||
case self::TYPE_INFORMATION:
|
case self::TYPE_INFORMATION:
|
||||||
$separator = ':';
|
$separator = ':';
|
||||||
break;
|
break;
|
||||||
case self::TYPE_JOIN:
|
|
||||||
unset($additionalData['ipAddress']);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
$separator = '';
|
$separator = '';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->type == self::TYPE_JOIN) unset($additionalData['ipAddress']);
|
||||||
|
|
||||||
$array = array(
|
$array = array(
|
||||||
'formattedUsername' => $this->getUsername(true),
|
'formattedUsername' => $this->getUsername(true),
|
||||||
|
Loading…
Reference in New Issue
Block a user