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

Show ip in join message.

This commit is contained in:
Tim Düsterhus 2012-08-28 21:53:21 +02:00
parent a1d4028723
commit f48dfab256
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ public function readData() {
'username' => WCF::getUser()->username,
'time' => TIME_NOW,
'type' => chat\message\ChatMessage::TYPE_JOIN,
'message' => '',
'message' => serialize(array('ipAddress' => \wcf\util\UserUtil::convertIPv6To4(\wcf\util\UserUtil::getIpAddress()))),
'color1' => $this->userData['color'][1],
'color2' => $this->userData['color'][2]
)

View File

@ -89,7 +89,7 @@ Hinweis: Setzen Sie diese Einstellung nur, wenn Sie wissen, was sie bewirkt. Die
<category name="wcf.chat.message">
<!-- 1 = TYPE_JOIN -->
<item name="wcf.chat.message.1"><![CDATA[hat den Chat betreten.]]></item>
<item name="wcf.chat.message.1"><![CDATA[hat den Chat betreten.{if true} ({$ipAddress}){/if}]]></item><!-- todo: check rights -->
<!-- 2 = TYPE_LEAVE -->
<item name="wcf.chat.message.2"><![CDATA[hat den Chat verlassen.]]></item>
<!-- 3 = TYPE_AWAY -->