+Thu Oct 8 17:13:27 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+ * messages.c, citadel.rc: added the ability to display message numbers
+ in the header when reading messages. I think this is butt ugly, but
+ some of the DaveCode afficionados seem to like it...
+
Thu Oct 8 15:34:45 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* room_ops.c: Added is_noneditable() function to replace all of the
duplicated code present in all functions which edit room parameters.
#
local_screen_dimensions=0
+# If DISPLAY_MESSAGE_NUMBERS is set to 1, then messages will be displayed
+# with their message numbers in the header. This is ugly but some
+# people seem to like it anyway...
+#
+display_message_numbers=0
+
# USE_FLOORS determines whether the user sees floors, or a flat room space.
# Set it to YES to always use floors, NO to never use floors, or DEFAULT
# to use the setting in the user's configuration (which is normally the case).
int rc_exp_beep;
char rc_exp_cmd[256];
int rc_allow_attachments;
+int rc_display_message_numbers;
char *gl_string;
rc_exp_beep = 1;
rc_allow_attachments = 0;
strcpy(rc_exp_cmd, "");
+ rc_display_message_numbers = 0;
/* now try to open the citadel.rc file */
rc_allow_attachments = atoi(&buf[18]);
}
+ if (!struncmp(buf,"display_message_numbers=", 24)) {
+ rc_display_message_numbers = atoi(&buf[24]);
+ }
+
if (!struncmp(buf,"username=",9))
strcpy(rc_username,&buf[9]);
extern char editor_path[];
extern char printcmd[];
extern int rc_allow_attachments;
+extern int rc_display_message_numbers;
extern int editor_pid;
if (nhdr==1) buf[0]='_';
if (!struncmp(buf,"type=",5))
format_type=atoi(&buf[5]);
+ if ((!struncmp(buf,"msgn=",5))&&(rc_display_message_numbers)) {
+ printf("[#%s] ",&buf[5]);
+ }
if (!struncmp(buf,"from=",5)) {
printf("from %s ",&buf[5]);
}