1036 |
|
if (!conf->until || conf->until > CurrentTime) |
1037 |
|
continue; |
1038 |
|
|
1039 |
< |
if (conf->type == CONF_XLINE) |
1040 |
< |
{ |
1041 |
< |
if (ConfigGeneral.tkline_expire_notices) |
1042 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
1043 |
< |
"Temporary X-line for [%s] expired", conf->name); |
1044 |
< |
conf_free(conf); |
1045 |
< |
} |
1046 |
< |
else if (conf->type == CONF_NRESV || conf->type == CONF_CRESV) |
1047 |
< |
{ |
1048 |
< |
if (ConfigGeneral.tkline_expire_notices) |
1049 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
1050 |
< |
"Temporary RESV for [%s] expired", conf->name); |
1051 |
< |
conf_free(conf); |
1052 |
< |
} |
1039 |
> |
if (ConfigGeneral.tkline_expire_notices) |
1040 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, "Temporary %s for [%s] expired", |
1041 |
> |
(conf->type == CONF_XLINE) ? "X-line" : "RESV", conf->name); |
1042 |
> |
conf_free(conf); |
1043 |
|
} |
1044 |
|
} |
1045 |
|
|