+Thu Oct 1 16:27:13 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+ * Removed a few more references to usersupp.lastseen[]
+
1998-10-01 Nathan Bryant <bryant@cs.usm.maine.edu>
* .cvsignore: add so_locations (generated by osf1 ld with shared libs)
* Makefile.in: restructured variables for greater consistency, use
struct usersupp { /* User record */
int USuid; /* userid (==BBSUID for bbs only) */
char password[20]; /* password (for BBS-only users) */
- long lastseen[MAXROOMS]; /* Last message seen in each room */
- long generation[MAXROOMS]; /* Generation # (for private rooms) */
- long forget[MAXROOMS]; /* Forgotten generation number */
+ long lastseen[MAXROOMS]; /* deprecated */
+ long generation[MAXROOMS]; /* deprecated */
+ long forget[MAXROOMS]; /* deprecated */
unsigned flags; /* See US_ flags below */
int timescalled; /* Total number of logins */
int posted; /* Number of messages posted (ever) */
char which[256];
int cm_howmany = 0;
long cm_gt = 0L;
+ struct visit vbuf;
extract(which,cmdbuf,0);
get_mm();
get_msglist(CC->curr_rm);
getuser(&CC->usersupp,CC->curr_user);
- cprintf("%d %d messages...\n",LISTING_FOLLOWS, CC->num_msgs);
+ CtdlGetRelationship(&vbuf, &CC->usersupp, &CC->quickroom);
+
+ cprintf("%d Message list...\n",LISTING_FOLLOWS);
if (CC->num_msgs != 0) {
for (a=0; a<(CC->num_msgs); ++a)
if ((MessageFromList(a) >=0)
&& (
(mode==MSGS_ALL)
-|| ((mode==MSGS_OLD) && (MessageFromList(a) <= CC->usersupp.lastseen[CC->curr_rm]))
-|| ((mode==MSGS_NEW) && (MessageFromList(a) > CC->usersupp.lastseen[CC->curr_rm]))
-|| ((mode==MSGS_NEW) && (MessageFromList(a) >= CC->usersupp.lastseen[CC->curr_rm])
+|| ((mode==MSGS_OLD) && (MessageFromList(a) <= vbuf.v_lastseen))
+|| ((mode==MSGS_NEW) && (MessageFromList(a) > vbuf.v_lastseen))
+|| ((mode==MSGS_NEW) && (MessageFromList(a) >= vbuf.v_lastseen)
&& (CC->usersupp.flags & US_LASTOLD))
|| ((mode==MSGS_LAST)&& (a>=(CC->num_msgs-cm_howmany)))
|| ((mode==MSGS_FIRST)&&(a<cm_howmany))
/********************************************************/
/* FIX this can safely be removed during the cutover... */
for (a=0; a<MAXROOMS; ++a) {
- CC->usersupp.lastseen[a]=0L;
CC->usersupp.generation[a]=(-1);
CC->usersupp.forget[a]=(-1);
}