Make the ircd start again.
This commit is contained in:
parent
a02e61ed80
commit
f43b492b70
20
src/ircd.c
20
src/ircd.c
|
@ -543,7 +543,15 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
init_sys();
|
init_sys();
|
||||||
|
|
||||||
|
ConfigFileEntry.dpath = DPATH;
|
||||||
|
ConfigFileEntry.configfile = CPATH; /* Server configuration file */
|
||||||
|
ConfigFileEntry.klinefile = KPATH; /* Server kline file */
|
||||||
|
ConfigFileEntry.dlinefile = DLPATH; /* dline file */
|
||||||
|
ConfigFileEntry.xlinefile = XPATH;
|
||||||
|
ConfigFileEntry.resvfile = RESVPATH;
|
||||||
|
ConfigFileEntry.connect_timeout = 30; /* Default to 30 */
|
||||||
|
|
||||||
|
umask(077); /* better safe than sorry --SRB */
|
||||||
|
|
||||||
myargv = argv;
|
myargv = argv;
|
||||||
parseargs(&argc, &argv, myopts);
|
parseargs(&argc, &argv, myopts);
|
||||||
|
@ -583,18 +591,6 @@ main(int argc, char *argv[])
|
||||||
/* Initialise the channel capability usage counts... */
|
/* Initialise the channel capability usage counts... */
|
||||||
init_chcap_usage_counts();
|
init_chcap_usage_counts();
|
||||||
|
|
||||||
ConfigFileEntry.dpath = DPATH;
|
|
||||||
ConfigFileEntry.configfile = CPATH; /* Server configuration file */
|
|
||||||
ConfigFileEntry.klinefile = KPATH; /* Server kline file */
|
|
||||||
ConfigFileEntry.dlinefile = DLPATH; /* dline file */
|
|
||||||
ConfigFileEntry.xlinefile = XPATH;
|
|
||||||
ConfigFileEntry.resvfile = RESVPATH;
|
|
||||||
ConfigFileEntry.connect_timeout = 30; /* Default to 30 */
|
|
||||||
|
|
||||||
umask(077); /* better safe than sorry --SRB */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(printVersion)
|
if(printVersion)
|
||||||
{
|
{
|
||||||
printf("ircd: version %s(%s)\n", ircd_version, serno);
|
printf("ircd: version %s(%s)\n", ircd_version, serno);
|
||||||
|
|
Loading…
Reference in New Issue