From: Wilfried Göesgens Date: Sat, 23 Jun 2007 21:56:34 +0000 (+0000) Subject: * added subject required line to the room config tab X-Git-Tag: v7.86~3286 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=d998d3601407d81916625728dd26287a1bce71f4;p=citadel.git * added subject required line to the room config tab * evaluate the flag in the message create box. --- diff --git a/webcit/messages.c b/webcit/messages.c index d5438d388..61ce15f9d 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -2838,6 +2838,7 @@ void display_enter(void) char *display_name; struct wc_attachment *att; int recipient_required = 0; + int subject_required = 0; int recipient_bad = 0; int i; int is_anonymous = 0; @@ -2858,6 +2859,7 @@ void display_enter(void) /** First test to see whether this is a room that requires recipients to be entered */ serv_puts("ENT0 0"); serv_getln(buf, sizeof buf); + if (!strncmp(buf, "570", 3)) { /** 570 means that we need a recipient here */ recipient_required = 1; } @@ -2867,6 +2869,12 @@ void display_enter(void) return; } + if ((buf[3] != '\0') && + (buf[4] != '\0') && + !strncmp(&(buf[5]), "SUBJECTREQ", 10)) { + subject_required = 1; + } + /** * Are we perhaps in an address book view? If so, then an "enter * message" command really means "add new entry." @@ -3053,7 +3061,7 @@ void display_enter(void) } wprintf("