]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
* Added "edit room info file"
[citadel.git] / webcit / webcit.c
index 2fa13e76ca56d5864503e3b291e80ac8651ac6a2..043094451c4dcfa033d2cc0ad7be8bcc4f8d0425 100644 (file)
@@ -724,6 +724,23 @@ fclose(fp);
                editroom();
                }
 
+       else if (!strcasecmp(action, "display_editinfo")) {
+               display_edit("Room info", "EINF 0", "RINF", "/editinfo");
+               }
+
+       else if (!strcasecmp(action, "editinfo")) {
+               save_edit("Room info", "EINF 1", 1);
+               }
+
+       else if (!strcasecmp(action, "display_editbio")) {
+               sprintf(buf, "RBIO %s", wc_username);
+               display_edit("Your bio", "NOOP", buf, "editbio");
+               }
+
+       else if (!strcasecmp(action, "editbio")) {
+               save_edit("Your bio", "EBIO", 0);
+               }
+
        /* When all else fails... */
        else {
                printf("HTTP/1.0 200 OK\n");