Index: openacs-4/packages/chat/www/ajax/chat.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/chat/www/ajax/Attic/chat.tcl,v diff -u -N -r1.1.2.2 -r1.1.2.3 --- openacs-4/packages/chat/www/ajax/chat.tcl 31 Mar 2006 12:52:49 -0000 1.1.2.2 +++ openacs-4/packages/chat/www/ajax/chat.tcl 31 Mar 2006 16:09:56 -0000 1.1.2.3 @@ -12,7 +12,7 @@ } set message_output "" -set user_output "" +set user_output "-" ::chat::Chat c1 -volatile -chat_id $id -session_id $s @@ -43,7 +43,7 @@ default {ns_log error "--c unknown method $m called."} } -ns_return 200 text/html " +set output " -
$message_output
$user_output
-" \ No newline at end of file +" + +if { $message_output ne "" } { + append output "
$message_output
\n" +} + +if { $user_output ne "-" } { + append output "$user_output
\n" +} + +append output " + +" + +ns_return 200 text/html $output \ No newline at end of file