Skip to content

Commit

Permalink
print notice when guest views chat.
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Aug 21, 2004
1 parent c89bf29 commit d022e34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/en/chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
$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';
Expand Down
2 changes: 2 additions & 0 deletions mod/chat/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@
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'));
}


Expand Down

0 comments on commit d022e34

Please sign in to comment.