$Log$
+ Revision 573.12 2000/10/11 22:55:25 error
+ * citadel.c: when ansi_color=user, enable color at login, so Lobby> posts
+ displayed at login are in color
+
Revision 573.11 2000/10/11 22:47:51 error
* domain.c: getmx() returns hostname as MX if no MX records found a la RFC 974
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
char floorlist[128][256]; /* names of floors */
char express_msgs = 0; /* express messages waiting! */
+extern int rc_ansi_color; /* ansi color value from citadel.rc */
+
/*
* here is our 'clean up gracefully and exit' routine
*/
enter_config(1);
+PWOK:
+ /* Switch color support on or off if we're in user mode */
+ if (rc_ansi_color == 3) {
+ if (userflags & US_COLOR)
+ enable_color = 1;
+ else
+ enable_color = 0;
+ }
-PWOK: printf("%s\nAccess level: %d (%s)\nUser #%ld / Call #%d\n",
+ printf("%s\nAccess level: %d (%s)\nUser #%ld / Call #%d\n",
fullname, axlevel, axdefs[(int) axlevel],
usernum, timescalled);