| 82 |
|
const char *pidFileName = PPATH; |
| 83 |
|
|
| 84 |
|
char **myargv; |
| 85 |
– |
char ircd_platform[PLATFORMLEN]; |
| 85 |
|
|
| 86 |
|
int dorehash = 0; |
| 87 |
|
int doremotd = 0; |
| 141 |
|
|
| 142 |
|
static int printVersion = 0; |
| 143 |
|
|
| 144 |
< |
struct lgetopt myopts[] = { |
| 144 |
> |
static struct lgetopt myopts[] = { |
| 145 |
|
{"dlinefile", &ConfigFileEntry.dlinefile, |
| 146 |
|
STRING, "File to use for dline.conf"}, |
| 147 |
|
{"configfile", &ConfigFileEntry.configfile, |
| 298 |
|
initialize_message_files(void) |
| 299 |
|
{ |
| 300 |
|
init_message_file(USER_MOTD, MPATH, &ConfigFileEntry.motd); |
| 302 |
– |
init_message_file(OPER_MOTD, OPATH, &ConfigFileEntry.opermotd); |
| 301 |
|
init_message_file(USER_LINKS, LIPATH, &ConfigFileEntry.linksfile); |
| 302 |
|
|
| 303 |
|
read_message_file(&ConfigFileEntry.motd); |
| 306 |
– |
read_message_file(&ConfigFileEntry.opermotd); |
| 304 |
|
read_message_file(&ConfigFileEntry.linksfile); |
| 305 |
|
|
| 306 |
|
init_isupport(); |
| 508 |
|
ConfigFileEntry.rxlinefile = RXPATH; /* Server regex xline file */ |
| 509 |
|
ConfigFileEntry.rklinefile = RKPATH; /* Server regex kline file */ |
| 510 |
|
ConfigFileEntry.dlinefile = DLPATH; /* dline file */ |
| 514 |
– |
ConfigFileEntry.glinefile = GPATH; /* gline log file */ |
| 511 |
|
ConfigFileEntry.cresvfile = CRESVPATH; /* channel resv file */ |
| 512 |
|
ConfigFileEntry.nresvfile = NRESVPATH; /* nick resv file */ |
| 513 |
|
myargv = argv; |
| 539 |
|
|
| 540 |
|
setup_signals(); |
| 541 |
|
|
| 546 |
– |
get_ircd_platform(ircd_platform); |
| 547 |
– |
|
| 542 |
|
/* Init the event subsystem */ |
| 543 |
|
eventInit(); |
| 544 |
|
/* We need this to initialise the fd array before anything else */ |
| 557 |
|
init_hash(); |
| 558 |
|
init_ip_hash_table(); /* client host ip hash table */ |
| 559 |
|
init_host_hash(); /* Host-hashtable. */ |
| 566 |
– |
clear_tree_parse(); |
| 560 |
|
init_client(); |
| 561 |
|
init_class(); |
| 562 |
< |
init_whowas(); |
| 562 |
> |
whowas_init(); |
| 563 |
|
watch_init(); |
| 564 |
|
init_auth(); /* Initialise the auth code */ |
| 565 |
|
init_resolver(); /* Needs to be setup before the io loop */ |
| 566 |
+ |
modules_init(); |
| 567 |
|
read_conf_files(1); /* cold start init conf files */ |
| 568 |
|
init_uid(); |
| 569 |
|
initialize_server_capabs(); /* Set up default_server_capabs */ |