$Log$
+ Revision 601.114 2003/01/16 21:16:23 error
+ * CtdlIPCGetMessages(): Fix message read failing on first attempt to read
+ messages
+
Revision 601.113 2003/01/16 10:04:03 error
* ENT0 command: changed post-as username from arg 4 to arg 5; 4 was already
used as the message subject
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
if (ret / 100 != 1)
return ret;
count = 0;
- *mret = (unsigned long *)malloc(sizeof(unsigned long));
+ *mret = (unsigned long *)calloc(1, sizeof(unsigned long));
if (!*mret)
return -1;
while (bbb && strlen(bbb)) {
;
}
- if (num_msgs == 0) {
- if (c == 3) return;
+ if (num_msgs == 0) { /* TODO look at this later */
+ if (c == LastMessages) return;
scr_printf("*** There are no ");
- if (c == 1) scr_printf("new ");
- if (c == 2) scr_printf("old ");
+ if (c == NewMessages) scr_printf("new ");
+ if (c == OldMessages) scr_printf("old ");
scr_printf("messages in this room.\n");
return;
}