Index: index.php =================================================================== --- \mod\chat\gui_ajax\index.php (revision 70) +++ \mod\chat\gui_ajax\index.php (working copy) @@ -58,7 +58,7 @@ 'theme'=>$theme, 'userid'=>$USER->id, 'sid'=>$chat_sid, - 'timer'=>3000, + 'timer'=>($CFG->chat_refresh_room * 1000), 'chat_lasttime'=>0, 'chat_lastrow'=>null, 'chatroom_name'=>format_string($course->shortname) . ": ".format_string($chat->name,true).$groupname