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:
parent
e938614f01
commit
812ce1d5d4
@ -69,21 +69,23 @@ public function readData() {
|
|||||||
|
|
||||||
$this->readRoom();
|
$this->readRoom();
|
||||||
$this->readUserData();
|
$this->readUserData();
|
||||||
$this->joinMessage = chat\message\ChatMessageEditor::create(array(
|
if (CHAT_DISPLAY_JOIN_LEAVE) {
|
||||||
'roomID' => $this->room->roomID,
|
$this->joinMessage = chat\message\ChatMessageEditor::create(array(
|
||||||
'sender' => WCF::getUser()->userID,
|
'roomID' => $this->room->roomID,
|
||||||
'username' => WCF::getUser()->username,
|
'sender' => WCF::getUser()->userID,
|
||||||
'time' => TIME_NOW,
|
'username' => WCF::getUser()->username,
|
||||||
'type' => chat\message\ChatMessage::TYPE_JOIN,
|
'time' => TIME_NOW,
|
||||||
'message' => '',
|
'type' => chat\message\ChatMessage::TYPE_JOIN,
|
||||||
'color1' => $this->userData['color'][1],
|
'message' => '',
|
||||||
'color2' => $this->userData['color'][2]
|
'color1' => $this->userData['color'][1],
|
||||||
));
|
'color2' => $this->userData['color'][2]
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
$this->readDefaultSmileys();
|
$this->readDefaultSmileys();
|
||||||
$this->readChatVersion();
|
$this->readChatVersion();
|
||||||
|
|
||||||
$this->newestMessages = chat\message\ChatMessageList::getNewestMessages($this->room, 5);
|
$this->newestMessages = chat\message\ChatMessageList::getNewestMessages($this->room, CHAT_LASTMESSAGES);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user