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

Check some of our options

This commit is contained in:
Tim Düsterhus 2011-12-10 18:05:21 +01:00
parent e938614f01
commit 812ce1d5d4

View File

@ -69,21 +69,23 @@ public function readData() {
$this->readRoom();
$this->readUserData();
$this->joinMessage = chat\message\ChatMessageEditor::create(array(
'roomID' => $this->room->roomID,
'sender' => WCF::getUser()->userID,
'username' => WCF::getUser()->username,
'time' => TIME_NOW,
'type' => chat\message\ChatMessage::TYPE_JOIN,
'message' => '',
'color1' => $this->userData['color'][1],
'color2' => $this->userData['color'][2]
));
if (CHAT_DISPLAY_JOIN_LEAVE) {
$this->joinMessage = chat\message\ChatMessageEditor::create(array(
'roomID' => $this->room->roomID,
'sender' => WCF::getUser()->userID,
'username' => WCF::getUser()->username,
'time' => TIME_NOW,
'type' => chat\message\ChatMessage::TYPE_JOIN,
'message' => '',
'color1' => $this->userData['color'][1],
'color2' => $this->userData['color'][2]
));
}
$this->readDefaultSmileys();
$this->readChatVersion();
$this->newestMessages = chat\message\ChatMessageList::getNewestMessages($this->room, 5);
$this->newestMessages = chat\message\ChatMessageList::getNewestMessages($this->room, CHAT_LASTMESSAGES);
}
/**