* msgbase.c: reimplemented cmd_move()
room_ops.c: wrote AddMessageToRoom() which is used for both entering
and moving messages.
+ * setup.c: system-default message expire policy of "number of
+ messages, 150" is now a default configuration instead of a temp hack
Wed Oct 14 22:41:16 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Misc code cleanup
display_error("setup: cannot open citadel.config");
cleanup(1);
}
-/************************************************************************/
-/* FIX - This is a temporary system-wide default. Add configurability. */
- config.c_ep.expire_mode = EXPIRE_NUMMSGS;
- config.c_ep.expire_value = 150;
-/************************************************************************/
fwrite((char *)&config,sizeof(struct config),1,fp);
fclose(fp);
}
config.c_sleeping = 900;
}
+ /* We need a system default message expiry policy, because this is
+ * the top level and there's no 'higher' policy to fall back on.
+ */
+ if (config.c_ep.expire_mode == 0) {
+ config.c_ep.expire_mode = EXPIRE_NUMMSGS;
+ config.c_ep.expire_value = 150;
+ }
+
/* Go through a series of dialogs prompting for config info */
for (curr = 1; curr <= MAXSETUP; ++curr) {
edit_value(curr);