Chat room text is now filtered

This commit is contained in:
moodler 2004-02-16 17:39:05 +00:00
parent 302130de75
commit 62a575d157
3 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ header("Refresh: $CFG->chat_refresh_room; URL=jsupdate.php?chat_sid=".$chat_sid.
"chatid = '$chatuser->chatid' AND timestamp > '$chat_lasttime'",
"timestamp ASC")) {
foreach ($messages as $message) {
$formatmessage = chat_format_message($message);
$formatmessage = chat_format_message($message, $chat->course);
if ($formatmessage->beep) {
$beep = $formatmessage->beep;
}

View File

@ -508,6 +508,7 @@ function chat_format_message($message, $courseid=0) {
convert_urls_into_links($text);
replace_smilies($text);
$text = filter_text($text, $courseid);
if (substr($text, 0, 5) == "beep ") { /// It's a beep!
$beepwho = trim(substr($text, 5));

View File

@ -108,7 +108,7 @@
}
if ($chat->intro) {
print_simple_box( text_to_html($chat->intro) , "center");
print_simple_box( format_text($chat->intro) , "center");
echo "<br />";
}