+Wed Oct 14 22:41:16 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+ * Misc code cleanup
+
1998-10-13 Nathan Bryant <bryant@cs.usm.maine.edu>
* configure.in: don't check for -lcrypt unless autologin is enabled
* file_ops.c: fix another overrun
time(&CC->lastcmd);
if (client_gets(cmdbuf) < 1) cleanup(EXIT_NULL);
lprintf(5, "citserver[%3d]: %s\n", CC->cs_pid, cmdbuf);
- /* hook_command_received(CC->cs_pid, cmdbuf); FIX */
/*
* Let other clients see the last command we executed, but
CC->quickroom.QRhighest = newmsgid;
lputroom(&CC->quickroom, actual_rm);
- /* Bump this user's messages posted counter. Also, if the user is a
- * twit, give them access to the twit room.
- */
+ /* Bump this user's messages posted counter. */
lgetuser(&CC->usersupp, CC->curr_user);
CC->usersupp.posted = CC->usersupp.posted + 1;
- /* FIX if user is twit, grant access to twitroom here */
lputuser(&CC->usersupp, CC->curr_user);
/* Network mail - send a copy to the network program. */
- if ((strlen(recipient)>0)&&(mailtype != M_LOCAL)) {
+ if ( (strlen(recipient)>0) && (mailtype != M_LOCAL) ) {
sprintf(aaa,"./network/spoolin/nm.%d",getpid());
copy_file(mtmp,aaa);
system("exec nohup ./netproc >/dev/null 2>&1 &");
display_error("setup: cannot open citadel.config");
cleanup(1);
}
-/******************************************/
-/* THIS IS TEMPORARY FIX FIX FIX FIX FIX */
+/************************************************************************/
+/* FIX - This is a temporary system-wide default. Add configurability. */
config.c_ep.expire_mode = EXPIRE_NUMMSGS;
- config.c_ep.expire_value = 10;
-/******************************************/
+ config.c_ep.expire_value = 150;
+/************************************************************************/
fwrite((char *)&config,sizeof(struct config),1,fp);
fclose(fp);
}