X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Flistsub.c;fp=webcit%2Flistsub.c;h=64f809e522f93feba0a380c1c6dba81ebcabf5b0;hp=5d9ceb8a7b1ac6baed11707263887cdb748eb1df;hb=128563fad091fb8cb0a01bb5300ae7842c76f253;hpb=cc78da6d1f009c3b58dd031bee0203183e64c587 diff --git a/webcit/listsub.c b/webcit/listsub.c index 5d9ceb8a7..64f809e52 100644 --- a/webcit/listsub.c +++ b/webcit/listsub.c @@ -24,7 +24,11 @@ int Conditional_LISTSUB_EXECUTE_SUBSCRIBE(StrBuf *Target, WCTemplputParams *TP) StrBuf *Line; const char *ImpMsg; const StrBuf *Room, *Email, *SubType; - + + if (strcmp(bstr("cmd"), "subscribe")) { + return 0; + } + Room = sbstr("room"); if (Room == NULL) { @@ -62,7 +66,11 @@ int Conditional_LISTSUB_EXECUTE_UNSUBSCRIBE(StrBuf *Target, WCTemplputParams *TP StrBuf *Line; const char *ImpMsg; const StrBuf *Room, *Email; - + + if (strcmp(bstr("cmd"), "unsubscribe")) { + return 0; + } + Room = sbstr("room"); if (Room == NULL) { @@ -98,7 +106,11 @@ int Conditional_LISTSUB_EXECUTE_CONFIRM_SUBSCRIBE(StrBuf *Target, WCTemplputPara StrBuf *Line; const char *ImpMsg; const StrBuf *Room, *Token; - + + if (strcmp(bstr("cmd"), "confirm")) { + return 0; + } + Room = sbstr("room"); if (Room == NULL) {