Index: openacs-4/packages/chat/www/chat.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/chat/www/chat.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/chat/www/chat.tcl 8 Aug 2006 21:26:19 -0000 1.7 +++ openacs-4/packages/chat/www/chat.tcl 26 Oct 2006 11:11:20 -0000 1.8 @@ -58,6 +58,7 @@ chat_message_post $room_id $user_id $message $moderator_p } + # Determine which template to use for html or ajax client switch $client { "html" { @@ -69,10 +70,10 @@ c1 add_msg $message } } - "ajax" { + "ajax" { set template_use "ajax-chat-script" } - "java" { + "java" { set template_use "java-chat" # Get config paramater for applet. @@ -83,6 +84,5 @@ set port [ad_parameter ServerPort "" 8200] } } - ad_return_template $template_use