Adjusted ENT0 response to look for nonzero instead of
authorArt Cancro <ajc@citadel.org>
Sun, 24 Jun 2007 04:24:34 +0000 (04:24 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 24 Jun 2007 04:24:34 +0000 (04:24 +0000)
a string for the 'subject required' function.

webcit/messages.c

index 61ce15f9dfe250238828233c058f9a1fd242278c..ec460d4981f5c2bed1d7ee99744717d1e62cb9ed 100644 (file)
@@ -2869,10 +2869,9 @@ void display_enter(void)
                return;
        }
 
-       if ((buf[3] != '\0') && 
-               (buf[4] != '\0') && 
-               !strncmp(&(buf[5]), "SUBJECTREQ", 10)) {
-               subject_required = 1;
+       /* Is the server strongly recommending that the user enter a message subject? */
+       if ((buf[3] != '\0') && (buf[4] != '\0')) {
+               subject_required = extract_int(&buf[4], 1);
        }
 
        /**