29 |
|
#include "list.h" |
30 |
|
#include "ircd.h" |
31 |
|
#include "channel.h" |
32 |
– |
#include "channel_mode.h" |
32 |
|
#include "client.h" |
33 |
|
#include "event.h" |
34 |
|
#include "fdlist.h" |
39 |
|
#include "motd.h" |
40 |
|
#include "conf.h" |
41 |
|
#include "hostmask.h" |
43 |
– |
#include "numeric.h" |
44 |
– |
#include "packet.h" |
42 |
|
#include "parse.h" |
43 |
|
#include "irc_res.h" |
44 |
|
#include "restart.h" |
46 |
|
#include "s_auth.h" |
47 |
|
#include "s_bsd.h" |
48 |
|
#include "log.h" |
52 |
– |
#include "s_misc.h" |
49 |
|
#include "s_serv.h" /* try_connections */ |
50 |
|
#include "send.h" |
51 |
|
#include "whowas.h" |
52 |
|
#include "modules.h" |
53 |
|
#include "memory.h" |
54 |
|
#include "mempool.h" |
59 |
– |
#include "hook.h" |
55 |
|
#include "ircd_getopt.h" |
56 |
|
#include "supported.h" |
57 |
|
#include "watch.h" |
135 |
|
|
136 |
|
static int printVersion = 0; |
137 |
|
|
138 |
< |
static struct lgetopt myopts[] = { |
138 |
> |
static struct lgetopt myopts[] = |
139 |
> |
{ |
140 |
|
{"configfile", &ConfigFileEntry.configfile, |
141 |
|
STRING, "File to use for ircd.conf"}, |
142 |
|
{"glinefile", &ConfigFileEntry.glinefile, |
173 |
|
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
174 |
|
"Clock Failure (%s), TS can be corrupted", |
175 |
|
strerror(errno)); |
176 |
< |
restart("Clock Failure"); |
176 |
> |
server_die("Clock Failure", 1); |
177 |
|
} |
178 |
|
|
179 |
|
if (newtime.tv_sec < CurrentTime) |
194 |
|
static void |
195 |
|
io_loop(void) |
196 |
|
{ |
197 |
< |
while (1 == 1) |
197 |
> |
while (1) |
198 |
|
{ |
199 |
|
/* |
200 |
|
* Maybe we want a flags word? |
237 |
|
rehash(1); |
238 |
|
dorehash = 0; |
239 |
|
} |
240 |
+ |
|
241 |
|
if (doremotd) |
242 |
|
{ |
243 |
|
motd_recache(); |
299 |
|
add_capability("TS6", CAP_TS6, 0); |
300 |
|
add_capability("CLUSTER", CAP_CLUSTER, 1); |
301 |
|
add_capability("SVS", CAP_SVS, 1); |
302 |
+ |
add_capability("CHW", CAP_CHW, 1); |
303 |
|
#ifdef HALFOPS |
304 |
|
add_capability("HOPS", CAP_HOPS, 1); |
305 |
|
#endif |
478 |
|
dlinkAdd(&me, &me.node, &global_client_list); /* Pointer to beginning |
479 |
|
of Client list */ |
480 |
|
ConfigFileEntry.dpath = DPATH; |
481 |
+ |
ConfigFileEntry.spath = SPATH; |
482 |
+ |
ConfigFileEntry.mpath = MPATH; |
483 |
|
ConfigFileEntry.configfile = CPATH; /* Server configuration file */ |
484 |
|
ConfigFileEntry.klinefile = KPATH; /* Server kline file */ |
485 |
|
ConfigFileEntry.glinefile = GPATH; /* Server gline file */ |