]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/server/room_functions.c
Worked out the syntax for requesting a calendar range
[citadel.git] / webcit-ng / server / room_functions.c
index 9153319c64d51beac9542ec3f535368de8763f4c..12b5df5985a68bf1ef37fdea0df38ef31a6b70a3 100644 (file)
@@ -226,6 +226,12 @@ void object_in_room(struct http_transaction *h, struct ctdlsession *c) {
                return;
        }
 
+       if (!strncasecmp(buf, "calendar:", 9)) {        // Client is requesting a calendar range
+               unescape_input(&buf[9]);
+               calendar_msglist(h, c, &buf[9]);
+               return;
+       }
+
        if (!strcasecmp(buf, "info.txt")) {             // Client is requesting the room info banner
                read_room_info_banner(h, c);
                return;