Index: openacs-4/packages/chat/www/ajax/chat.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat/www/ajax/Attic/chat.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/chat/www/ajax/chat.adp	18 Sep 2018 14:44:42 -0000	1.1
+++ openacs-4/packages/chat/www/ajax/chat.adp	18 Sep 2018 15:08:16 -0000	1.2
@@ -43,6 +43,11 @@
       }
   </style>
   <body style='margin:0px; padding:5px;'>
-    @output;literal@
+    <if @message_output@ ne "">
+      <div id='messages'>@message_output;literal@</div>
+    </if>
+    <if @user_output@ ne "">
+      <table id='users'><tbody>@user_output;literal@</tbody></table>
+    </if>
   </body>
 </html>
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 -r1.7 -r1.8
--- openacs-4/packages/chat/www/ajax/chat.tcl	18 Sep 2018 14:44:42 -0000	1.7
+++ openacs-4/packages/chat/www/ajax/chat.tcl	18 Sep 2018 15:08:16 -0000	1.8
@@ -41,11 +41,3 @@
       ns_log error "--c unknown method $m called."
   }
 }
-
-set output ""
-if { $message_output ne "" } {
-    append output "<div id='messages'>$message_output</div>"
-}
-if { $user_output ne "" } {
-    append output "<table id='users'><tbody>$user_output</tbody></table>"
-}