]> code.citadel.org Git - citadel.git/blobdiff - webcit/paging.c
* Remove the defaulthost/defaultport vs. c_host/c_port stuff -- we haven't
[citadel.git] / webcit / paging.c
index a3987058e13493f1e8563f78c9b28bab669bcc57..adca9fbac2f216fa0ad2dc5786a0cd1f0a9bbcbb 100644 (file)
@@ -125,19 +125,24 @@ void do_chat(void)
        wprintf("<B>Real-time chat</B>\n");
        wprintf("</FONT></TD></TR></TABLE>\n");
 
-       wprintf("A chat window should be appearing on your screen ");
-       wprintf("momentarily.  When you're ");
-       wprintf("done, type <TT>/quit</TT> to exit.  You can also ");
-       wprintf("type <TT>/help</TT> for more commands.\n");
-
-       wprintf("<applet codebase=\"/static\" ");
-       wprintf("code=\"wcchat\" width=2 height=2>\n");
-       wprintf("<PARAM NAME=username VALUE=\"%s\">\n", WC->wc_username);
-       wprintf("<PARAM NAME=password VALUE=\"%s\">\n", WC->wc_password);
-       wprintf("<PARAM NAME=roomname VALUE=\"%s\">\n", WC->wc_roomname);
-       wprintf("<H2>Oops!</H2>Looks like your browser doesn't support Java, ");
-       wprintf("so you won't be able to access Chat.  Sorry.\n");
-       wprintf("</applet>\n");
+       if (!strcasecmp(ctdlhost, "uds")) {
+               wprintf("<I>Sorry ... chat is not available here.</i></BR>\n");
+       }
+       else {
+               wprintf("A chat window should be appearing on your screen ");
+               wprintf("momentarily.  When you're ");
+               wprintf("done, type <TT>/quit</TT> to exit.  You can also ");
+               wprintf("type <TT>/help</TT> for more commands.\n");
+       
+               wprintf("<applet codebase=\"/static\" ");
+               wprintf("code=\"wcchat\" width=2 height=2>\n");
+               wprintf("<PARAM NAME=username VALUE=\"%s\">\n", WC->wc_username);
+               wprintf("<PARAM NAME=password VALUE=\"%s\">\n", WC->wc_password);
+               wprintf("<PARAM NAME=roomname VALUE=\"%s\">\n", WC->wc_roomname);
+               wprintf("<H2>Oops!</H2>Looks like your browser doesn't support Java, ");
+               wprintf("so you won't be able to access Chat.  Sorry.\n");
+               wprintf("</applet>\n");
+       }
        wDumpContent(1);
 }