X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Flistsub.c;h=3f927a5b178e11df9a64f38587c6c1b4f6ecf021;hb=c1b0b859188c2eee353d12d3a659efc36448084d;hp=8d7fd116b50aec5ea554e3c851e4f9d517b508fc;hpb=3a648053f877d9604dc50c2cee353b7aaae650ef;p=citadel.git
diff --git a/webcit/listsub.c b/webcit/listsub.c
index 8d7fd116b..3f927a5b1 100644
--- a/webcit/listsub.c
+++ b/webcit/listsub.c
@@ -76,7 +76,8 @@ void do_listsub(void)
"Web link for you to click on to confirm "
"your subscription. This extra step is for "
"your protection, as it prevents others from "
- "being able to subscribe you to lists.
"
+ "being able to subscribe you to lists "
+ "without your consent.
"
"Please click on the link which is being "
"e-mailed to you and your subscription will "
"be confirmed.
\n"
@@ -90,6 +91,42 @@ void do_listsub(void)
}
}
+ /*
+ * Unsubscribe command
+ */
+ else if (!strcasecmp(cmd, "unsubscribe")) {
+ serv_printf("SUBS unsubscribe|%s|%s|%s/listsub",
+ room,
+ email,
+ WC->http_host
+ );
+ serv_gets(buf);
+ if (buf[0] == '2') {
+ wprintf("