]> code.citadel.org Git - citadel.git/commitdiff
* Added a "no new messages" response in the client, displayed when a read
authorArt Cancro <ajc@citadel.org>
Sun, 27 May 2001 05:23:03 +0000 (05:23 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 27 May 2001 05:23:03 +0000 (05:23 +0000)
  command turns up a zero message count.

citadel/ChangeLog
citadel/messages.c

index 36c950bc1c94e2767596e1f3a55ea4921d9dd3ac..3fb030447df99516a2834943baa48c7bd2a2194d 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 573.134  2001/05/27 05:23:03  ajc
+ * Added a "no new messages" response in the client, displayed when a read
+   command turns up a zero message count.
+
  Revision 573.133  2001/05/18 20:12:09  ajc
  * Fixed bug in mime_parser.c that caused parts to be dropped when the last
    boundary was the very last line of the message.
@@ -2522,3 +2526,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index a89e55aba5c1d05d78d933a125cc9611f79595e5..1cd168ad59d9616765f0500d0c838da67684dd7c 100644 (file)
@@ -1104,6 +1104,14 @@ void readmsgs(
                }
        }
 
+       if (num_msgs == 0) {
+               printf("*** There are no ");
+               if (c == 1) printf("new ");
+               if (c == 2) printf("old ");
+               printf("messages in this room.\n");
+               return;
+       }
+
        lines_printed = 0;
 
        /* this loop cycles through each message... */