From 186e3840dc0e313bf4bd2f91555a2dc5b7649ef6 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 14 Apr 2013 19:54:48 +0000 Subject: - Quarantined/reserved channels may now contain wildcards git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1825 82007160-df01-0410-b94d-b575c5fd34c7 --- src/conf.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/conf.c') diff --git a/src/conf.c b/src/conf.c index 3d30a86..af5c662 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1036,6 +1036,8 @@ map_to_list(enum maskitem_type type) case CONF_NRESV: return(&nresv_items); break; + case CONF_CRESV: + return(&resv_channel_list); case CONF_OPER: return(&oconf_items); break; @@ -1100,6 +1102,7 @@ find_matching_name_conf(enum maskitem_type type, const char *name, const char *u case CONF_XLINE: case CONF_ULINE: case CONF_NRESV: + case CONF_CRESV: DLINK_FOREACH(ptr, list_p->head) { conf = ptr->data; @@ -1161,6 +1164,7 @@ find_exact_name_conf(enum maskitem_type type, const struct Client *who, const ch case CONF_XLINE: case CONF_ULINE: case CONF_NRESV: + case CONF_CRESV: DLINK_FOREACH(ptr, list_p->head) { @@ -1628,20 +1632,13 @@ expire_tklines(dlink_list *tklist) "Temporary X-line for [%s] expired", conf->name); conf_free(conf); } - else if (conf->type == CONF_NRESV) + else if (conf->type == CONF_NRESV || conf->type == CONF_CRESV) { if (ConfigFileEntry.tkline_expire_notices) sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, "Temporary RESV for [%s] expired", conf->name); conf_free(conf); } - else if (conf->type == CONF_CRESV) - { - if (ConfigFileEntry.tkline_expire_notices) - sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, - "Temporary RESV for [%s] expired", conf->name); - delete_channel_resv(conf); - } } } @@ -1816,7 +1813,7 @@ clear_out_old_conf(void) dlink_list *free_items [] = { &server_items, &oconf_items, &uconf_items, &xconf_items, &rxconf_items, &rkconf_items, - &nresv_items, &cluster_items, &service_items, NULL + &nresv_items, &cluster_items, &service_items, &resv_channel_list, NULL }; dlink_list ** iterator = free_items; /* C is dumb */ @@ -1891,9 +1888,6 @@ clear_out_old_conf(void) SSL_OP_NO_TLSv1); #endif - /* clean out old resvs from the conf */ - clear_conf_resv(); - /* clean out AdminInfo */ MyFree(AdminInfo.name); AdminInfo.name = NULL; -- cgit