diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-14 19:54:48 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-14 19:54:48 +0000 |
commit | 186e3840dc0e313bf4bd2f91555a2dc5b7649ef6 (patch) | |
tree | 940a6e2b82a530751b91cbfffcd9e37002a6d709 /src/conf.c | |
parent | 08deca61eee50077726f8633b92f8d0e49ac17dd (diff) |
- 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
Diffstat (limited to 'src/conf.c')
-rw-r--r-- | src/conf.c | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -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; |