From 6e41148be6aa5a82c7a0d44558ef2ca3b806d69a Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 15 Mar 2004 03:45:01 +0000 Subject: [PATCH] * Open chat in a separate window. * Use regular frames instead of IFRAMEs. --- webcit/iconbar.c | 7 +++++-- webcit/mainmenu.c | 6 +++++- webcit/paging.c | 38 ++++++-------------------------------- 3 files changed, 16 insertions(+), 35 deletions(-) diff --git a/webcit/iconbar.c b/webcit/iconbar.c index 717fd5c2f..c3adb4ed2 100644 --- a/webcit/iconbar.c +++ b/webcit/iconbar.c @@ -199,8 +199,11 @@ void do_iconbar(void) { if (ib_chat) { wprintf("" - "" + "" ); if (ib_displayas != IB_TEXTONLY) { wprintf("
\n" ); - wprintf("
" + wprintf("" "" "Chat with other users in " ); diff --git a/webcit/paging.c b/webcit/paging.c index 87b877076..cbfdd7acc 100644 --- a/webcit/paging.c +++ b/webcit/paging.c @@ -135,37 +135,11 @@ void do_chat(void) WC->chat_sock = (-1); } - /* Ok, we're good. Here we go. */ - output_headers(3); - - wprintf("
" - "" - "" - ); - escputs(WC->wc_roomname); - wprintf(": real-time chat\n" - "
\n" - - "\n" - - "" - - "
\n" - - "\n" - ); - wDumpContent(1); + /* WebCit Chat works by having transmit, receive, and refresh + * frames. Load the frameset. + */ + do_template("chatframeset"); + return; } @@ -344,7 +318,7 @@ void chat_recv(void) { if (end_chat_now) { close(WC->chat_sock); WC->chat_sock = (-1); - wprintf("\n"); + wprintf("\n"); } if (strlen(output_data) > 0) { -- 2.39.2