381 |
|
initialize_server_capabs(void) |
382 |
|
{ |
383 |
|
add_capability("QS", CAP_QS, 1); |
384 |
– |
add_capability("LL", CAP_LL, 1); |
384 |
|
add_capability("EOB", CAP_EOB, 1); |
385 |
+ |
|
386 |
|
if (ServerInfo.sid != NULL) /* only enable TS6 if we have an SID */ |
387 |
|
add_capability("TS6", CAP_TS6, 0); |
388 |
+ |
|
389 |
|
add_capability("ZIP", CAP_ZIP, 0); |
390 |
|
add_capability("CLUSTER", CAP_CLUSTER, 1); |
391 |
|
#ifdef HALFOPS |
643 |
|
watch_init(); |
644 |
|
init_stats(); |
645 |
|
read_conf_files(1); /* cold start init conf files */ |
645 |
– |
initServerMask(); |
646 |
|
me.id[0] = '\0'; |
647 |
|
init_uid(); |
648 |
|
init_auth(); /* Initialise the auth code */ |
658 |
|
ilog(L_CRIT, "No server name specified in serverinfo block."); |
659 |
|
exit(EXIT_FAILURE); |
660 |
|
} |
661 |
+ |
|
662 |
|
strlcpy(me.name, ServerInfo.name, sizeof(me.name)); |
663 |
|
|
664 |
|
/* serverinfo{} description must exist. If not, error out.*/ |
668 |
|
"ERROR: No server description specified in serverinfo block."); |
669 |
|
exit(EXIT_FAILURE); |
670 |
|
} |
671 |
+ |
|
672 |
|
strlcpy(me.info, ServerInfo.description, sizeof(me.info)); |
673 |
|
|
674 |
|
me.from = &me; |
731 |
|
eventAddIsh("check_splitmode", check_splitmode, NULL, 60); |
732 |
|
|
733 |
|
io_loop(); |
734 |
< |
return(0); |
734 |
> |
return 0; |
735 |
|
} |