]> git.mjollnir.org Git - moodle.git/commitdiff
print notice when guest views chat.
authorgustav_delius <gustav_delius>
Sat, 21 Aug 2004 21:18:33 +0000 (21:18 +0000)
committergustav_delius <gustav_delius>
Sat, 21 Aug 2004 21:18:33 +0000 (21:18 +0000)
lang/en/chat.php
mod/chat/view.php

index 2903a55b3ce52c8131f15e3b057789363db9788a..1d058a4f1915978102e7baea04538673ffa82986 100644 (file)
@@ -35,6 +35,7 @@ $string['modulename'] = 'Chat';
 $string['modulenameplural'] = 'Chats';
 $string['neverdeletemessages'] = 'Never delete messages';
 $string['nextsession'] = 'Next scheduled session';
+$string['noguests'] = 'The chat is not open to guests';
 $string['nomessages'] = 'No messages yet';
 $string['repeatdaily'] = 'At the same time every day';
 $string['repeatnone'] = 'No repeats - publish the specified time only';
index 4153815434878ac26a4b9bb4f0159540a9a89d9f..f9402108773263b79f93505e5417350a4486d1fb 100644 (file)
         link_to_popup_window ("/mod/chat/gui_$CFG->chat_method/index.php?id=$chat->id$groupparam", 
                               "chat$course->id$chat->id$groupparam", "$strenterchat", 500, 700, $strchat);
         print_simple_box_end();
+    } else {
+        notice(get_string('noguests', 'chat'));
     }