]> code.citadel.org Git - citadel.git/commitdiff
Removed a few more references to usersupp.lastseen[]
authorArt Cancro <ajc@citadel.org>
Thu, 1 Oct 1998 20:28:58 +0000 (20:28 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 1 Oct 1998 20:28:58 +0000 (20:28 +0000)
citadel/ChangeLog
citadel/citadel.h
citadel/msgbase.c
citadel/user_ops.c

index f43067341b4709c8192575214b278be4d8e12269..775fcefabf42123ebec47e88eb64e638345a204c 100644 (file)
@@ -1,3 +1,6 @@
+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
index ff6b30607e6eb4fdd6f2f3fb84e69d89b225010f..d0b014363ef844f57a56d7c3305eb4bf1ce9032d 100644 (file)
@@ -87,9 +87,9 @@ struct visit {
 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) */
index d9b570c83464e0c7d0e14d3c58a348e99e00b9bf..1bf0f8b0d758f118fde46c3d3ed141cae2cb81a6 100644 (file)
@@ -144,6 +144,7 @@ void cmd_msgs(char *cmdbuf)
        char which[256];
        int cm_howmany = 0;
        long cm_gt = 0L;
+       struct visit vbuf;
 
        extract(which,cmdbuf,0);
 
@@ -175,16 +176,18 @@ void cmd_msgs(char *cmdbuf)
        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))
index 3f34fc3542902695fbbf028573f085ab43b76978..e9171ef23ab44b9ec5e407c4ea5e22d1dae5e74b 100644 (file)
@@ -505,7 +505,6 @@ int create_user(char *newusername)
        /********************************************************/
        /* 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);
                }