version 1.35 | | version 1.36 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.35 2002/11/13 05:24:53 garbled Exp $"; | | * "$Id: init.c,v 1.36 2002/11/13 05:49:04 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (has_val) strcpy(settings.meta_server, cp); | | if (has_val) strcpy(settings.meta_server, cp); |
else | | else |
LOG(llevError,"load_settings: metaserver_server must have a value.\n"); | | LOG(llevError,"load_settings: metaserver_server must have a value.\n"); |
| | } else if (!strcasecmp(buf,"motd")) { |
| | if (has_val) |
| | strcpy(settings.motd, cp); |
| | else |
| | LOG(llevError,"load_settings: motd must have a value.\n"); |
| | } else if (!strcasecmp(buf,"dm_mail")) { |
| | if (has_val) |
| | strcpy(settings.dm_mail, cp); |
| | else |
| | LOG(llevError,"load_settings: dm_mail must have a value.\n"); |
} else if (!strcasecmp(buf,"metaserver_host")) { | | } else if (!strcasecmp(buf,"metaserver_host")) { |
if (has_val) strcpy(settings.meta_host, cp); | | if (has_val) strcpy(settings.meta_host, cp); |
else | | else |
| | |
fprintf(logfile,"Copyright (C) 1994 Mark Wedel.\n"); | | fprintf(logfile,"Copyright (C) 1994 Mark Wedel.\n"); |
fprintf(logfile,"Copyright (C) 1992 Frank Tore Johansen.\n"); | | fprintf(logfile,"Copyright (C) 1992 Frank Tore Johansen.\n"); |
| | |
#ifdef DM_MAIL | | if (strcmp(settings.dm_mail, "") != 0) { |
fprintf(logfile,"Maintained locally by: %s\n",DM_MAIL); | | fprintf(logfile,"Maintained locally by: %s\n", settings.dm_mail); |
fprintf(logfile,"Questions and bugs should be mailed to above address.\n"); | | fprintf(logfile,"Questions and bugs should be mailed to above address.\n"); |
#endif | | } |
SRANDOM(time(NULL)); | | SRANDOM(time(NULL)); |
| | |
init_startup(); /* Write (C), check shutdown/forbid files */ | | init_startup(); /* Write (C), check shutdown/forbid files */ |
| | |
printf("Use_swap_stats:\t<false>\n"); | | printf("Use_swap_stats:\t<false>\n"); |
#endif | | #endif |
| | |
#ifdef DM_MAIL | | |
printf("DM mail:\t%s\n",DM_MAIL); | | |
#endif | | |
| | |
#ifdef X_EDITOR | | #ifdef X_EDITOR |
printf("Editor:\t\t%s\n",X_EDITOR); | | printf("Editor:\t\t%s\n",X_EDITOR); |
#endif | | #endif |