100 |
|
target_server, gecos, (int)tkline_time, reason); |
101 |
|
|
102 |
|
/* Allow ON to apply local xline as well if it matches */ |
103 |
< |
if (!match(target_server, me.name)) |
103 |
> |
if (match(target_server, me.name)) |
104 |
|
return; |
105 |
|
} |
106 |
|
else |
193 |
|
"XLINE %s %s %s :%s", |
194 |
|
parv[1], parv[2], parv[3], parv[4]); |
195 |
|
|
196 |
< |
if (!match(parv[1], me.name)) |
196 |
> |
if (match(parv[1], me.name)) |
197 |
|
return; |
198 |
|
|
199 |
|
if (HasFlag(source_p, FLAGS_SERVICE) || find_matching_name_conf(CONF_ULINE, source_p->servptr->name, |
248 |
|
"UNXLINE %s %s", target_server, gecos); |
249 |
|
|
250 |
|
/* Allow ON to apply local unxline as well if it matches */ |
251 |
< |
if (!match(target_server, me.name)) |
251 |
> |
if (match(target_server, me.name)) |
252 |
|
return; |
253 |
|
} |
254 |
|
else |
277 |
|
sendto_match_servs(source_p, parv[1], CAP_CLUSTER, |
278 |
|
"UNXLINE %s %s", parv[1], parv[2]); |
279 |
|
|
280 |
< |
if (!match(parv[1], me.name)) |
280 |
> |
if (match(parv[1], me.name)) |
281 |
|
return; |
282 |
|
|
283 |
|
if (HasFlag(source_p, FLAGS_SERVICE) || find_matching_name_conf(CONF_ULINE, source_p->servptr->name, |
332 |
|
conf = conf_make(CONF_XLINE); |
333 |
|
|
334 |
|
collapse(gecos); |
335 |
< |
DupString(conf->name, gecos); |
336 |
< |
DupString(conf->reason, reason); |
335 |
> |
conf->name = xstrdup(gecos); |
336 |
> |
conf->reason = xstrdup(reason); |
337 |
|
cur_time = CurrentTime; |
338 |
|
current_date = smalldate(cur_time); |
339 |
|
conf->setat = CurrentTime; |
352 |
|
ilog(LOG_TYPE_KLINE, "%s added temporary %d min. X-Line for [%s] [%s]", |
353 |
|
source_p->name, (int)tkline_time/60, |
354 |
|
conf->name, conf->reason); |
355 |
< |
conf->hold = CurrentTime + tkline_time; |
355 |
> |
conf->until = CurrentTime + tkline_time; |
356 |
|
} |
357 |
|
else |
358 |
|
{ |
361 |
|
get_oper_name(source_p), conf->name, |
362 |
|
conf->reason); |
363 |
|
sendto_one(source_p, |
364 |
< |
":%s NOTICE %s :Added X-Line [%s] [%d] [%s]", |
364 |
> |
":%s NOTICE %s :Added X-Line [%s] [%s]", |
365 |
|
MyConnect(source_p) ? me.name : ID_or_name(&me, source_p->from), |
366 |
< |
source_p->name, conf->name, |
367 |
< |
conf->action, conf->reason); |
366 |
> |
source_p->name, conf->name, conf->reason); |
367 |
|
ilog(LOG_TYPE_IRCD, "%s added X-Line for [%s] [%s]", |
368 |
|
get_oper_name(source_p), conf->name, conf->reason); |
369 |
|
} |