+/*
+ * wholist for chat
+ */
+void chat_rwho(void) {
+ char buf[1024];
+
+ serv_puts("RCHT rwho");
+ serv_getln(buf, sizeof buf);
+ if (buf[0] == '1') {
+ while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
+ if (!strcasecmp(buf, ChrPtr(WC->wc_fullname))) {
+ wc_printf("<span class=\"chat_myname_class\">");
+ }
+ else {
+ wc_printf("<span class=\"chat_notmyname_class\">");
+ }
+ wc_printf("<img src=\"static/webcit_icons/essen/16x16/chat.png\">");
+ escputs(buf);
+ wc_printf("</span><br>\n");
+ }
+ }
+}
+
+
+/*
+ * advise the Citadel server that the user is navigating away from the chat window
+ */
+void chat_exit(void) {
+ char buf[1024];
+
+ serv_puts("RCHT exit");
+ serv_getln(buf, sizeof buf); /* Throw away the server reply */
+}
+
+
+