| 59 |
|
#include "motd.h" |
| 60 |
|
#include "supported.h" |
| 61 |
|
#include "watch.h" |
| 62 |
< |
|
| 62 |
> |
#include "conf_db.h" |
| 63 |
|
|
| 64 |
|
/* /quote set variables */ |
| 65 |
|
struct SetOptions GlobalSetOptions; |
| 82 |
|
const char *pidFileName = PPATH; |
| 83 |
|
|
| 84 |
|
char **myargv; |
| 85 |
– |
char ircd_platform[PLATFORMLEN]; |
| 85 |
|
|
| 86 |
|
int dorehash = 0; |
| 87 |
|
int doremotd = 0; |
| 174 |
|
{ |
| 175 |
|
ilog(LOG_TYPE_IRCD, "Clock Failure (%s), TS can be corrupted", |
| 176 |
|
strerror(errno)); |
| 177 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, |
| 177 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
| 178 |
|
"Clock Failure (%s), TS can be corrupted", |
| 179 |
|
strerror(errno)); |
| 180 |
|
restart("Clock Failure"); |
| 243 |
|
if (doremotd) |
| 244 |
|
{ |
| 245 |
|
read_message_file(&ConfigFileEntry.motd); |
| 246 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, |
| 246 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
| 247 |
|
"Got signal SIGUSR1, reloading ircd motd file"); |
| 248 |
|
doremotd = 0; |
| 249 |
|
} |
| 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(); |
| 505 |
|
ConfigFileEntry.configfile = CPATH; /* Server configuration file */ |
| 506 |
|
ConfigFileEntry.klinefile = KPATH; /* Server kline file */ |
| 507 |
|
ConfigFileEntry.xlinefile = XPATH; /* Server xline file */ |
| 511 |
– |
ConfigFileEntry.rxlinefile = RXPATH; /* Server regex xline file */ |
| 512 |
– |
ConfigFileEntry.rklinefile = RKPATH; /* Server regex kline file */ |
| 508 |
|
ConfigFileEntry.dlinefile = DLPATH; /* dline file */ |
| 509 |
< |
ConfigFileEntry.glinefile = GPATH; /* gline log file */ |
| 510 |
< |
ConfigFileEntry.cresvfile = CRESVPATH; /* channel resv file */ |
| 516 |
< |
ConfigFileEntry.nresvfile = NRESVPATH; /* nick resv file */ |
| 509 |
> |
// ConfigFileEntry.cresvfile = CRESVPATH; /* channel resv file */ |
| 510 |
> |
// ConfigFileEntry.nresvfile = NRESVPATH; /* nick resv file */ |
| 511 |
|
myargv = argv; |
| 512 |
|
umask(077); /* better safe than sorry --SRB */ |
| 513 |
|
|
| 537 |
|
|
| 538 |
|
setup_signals(); |
| 539 |
|
|
| 546 |
– |
get_ircd_platform(ircd_platform); |
| 547 |
– |
|
| 540 |
|
/* Init the event subsystem */ |
| 541 |
|
eventInit(); |
| 542 |
|
/* We need this to initialise the fd array before anything else */ |
| 561 |
|
watch_init(); |
| 562 |
|
init_auth(); /* Initialise the auth code */ |
| 563 |
|
init_resolver(); /* Needs to be setup before the io loop */ |
| 564 |
+ |
modules_init(); |
| 565 |
|
read_conf_files(1); /* cold start init conf files */ |
| 566 |
|
init_uid(); |
| 567 |
|
initialize_server_capabs(); /* Set up default_server_capabs */ |
| 608 |
|
/* add ourselves to global_serv_list */ |
| 609 |
|
dlinkAdd(&me, make_dlink_node(), &global_serv_list); |
| 610 |
|
|
| 611 |
+ |
load_kline_database(); |
| 612 |
+ |
load_dline_database(); |
| 613 |
+ |
load_gline_database(); |
| 614 |
+ |
load_xline_database(); |
| 615 |
+ |
load_resv_database(); |
| 616 |
+ |
|
| 617 |
|
if (chdir(MODPATH)) |
| 618 |
|
{ |
| 619 |
|
ilog(LOG_TYPE_IRCD, "Could not load core modules. Terminating!"); |