$Log$
+ Revision 601.132 2003/02/13 22:33:41 ajc
+ * Fixed algorithm for reporting "last login"
+
Revision 601.131 2003/02/13 21:52:13 ajc
* IMAP service: fixed bug that was causing the wrong messages (usually *all*
messages) to be flagged when a STORE or COPY operation was performed.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
char net_node[PATH_MAX];/* Is the client another Citadel server? */
int client_socket;
int cs_pid; /* session ID */
- time_t cs_lastupdt; /* time of last update */
time_t lastcmd; /* time of last command executed */
time_t lastidle; /* For computing idle time */
+ time_t previous_login; /* Date/time of previous login */
char lastcmdname[5]; /* name of last command executed */
unsigned cs_flags; /* miscellaneous flags */
void (*h_command_function) (void) ; /* service command function */
lgetuser(&CC->usersupp, CC->curr_user);
++(CC->usersupp.timescalled);
+ CC->previous_login = CC->usersupp.lastcall;
time(&CC->usersupp.lastcall);
/* If this user's name is the name of the system administrator
CIT_OK, CC->usersupp.fullname, CC->usersupp.axlevel,
CC->usersupp.timescalled, CC->usersupp.posted,
CC->usersupp.flags, CC->usersupp.usernum,
- CC->usersupp.lastcall);
+ CC->previous_login);
}