diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-09 20:11:58 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-09 20:11:58 +0000 |
commit | d38dcbfe747f7cf48a024187038aef3afe662aeb (patch) | |
tree | a518e210050c9d3530a93707667248cf17c73bfa /src/conf.c | |
parent | 31f925f50413118a16a16632d7d86cfed1783602 (diff) |
- Finish stabilizing/cleanup of conf parser
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1647 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/conf.c')
-rw-r--r-- | src/conf.c | 43 |
1 files changed, 1 insertions, 42 deletions
@@ -1457,18 +1457,11 @@ read_conf(FILE *file) * start DNS lookups of all hostnames in the conf * line and convert an IP addresses in a.b.c.d number for to IP#s. */ -static void +void lookup_confhost(struct MaskItem *conf) { struct addrinfo hints, *res; - if (has_wildcards(conf->host)) - { - ilog(LOG_TYPE_IRCD, "Host/server name error: (%s) (%s)", - conf->host, conf->name); - return; - } - /* Do name lookup now on hostnames given and store the * ip numbers in conf structure. */ @@ -1961,40 +1954,6 @@ conf_add_class_to_conf(struct MaskItem *conf, const char *class_name) } } -/* conf_add_server() - * - * inputs - pointer to config item - * - pointer to link count already on this conf - * output - NONE - * side effects - Add a connect block - */ -int -conf_add_server(struct MaskItem *conf, const char *class_name) -{ - conf_add_class_to_conf(conf, class_name); - - if (EmptyString(conf->host) || EmptyString(conf->name)) - { - sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, - "Bad connect block"); - ilog(LOG_TYPE_IRCD, "Bad connect block"); - return -1; - } - - if (EmptyString(conf->passwd)) - { - sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, - "Bad connect block, name %s", - conf->name); - ilog(LOG_TYPE_IRCD, "Bad connect block, host %s", conf->name); - return -1; - } - - lookup_confhost(conf); - - return 0; -} - /* yyerror() * * inputs - message from parser |