| 62 |
|
add_conf_by_address(CONF_DLINE, aconf); |
| 63 |
|
|
| 64 |
|
|
| 65 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, |
| 65 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
| 66 |
|
"%s added temporary %d min. D-Line for [%s] [%s]", |
| 67 |
|
get_oper_name(source_p), tkline_time/60, |
| 68 |
|
aconf->host, aconf->reason); |
| 148 |
|
if (!HasOFlag(source_p, OPER_FLAG_DLINE)) |
| 149 |
|
{ |
| 150 |
|
sendto_one(source_p, form_str(ERR_NOPRIVS), |
| 151 |
< |
me.name, source_p->name, "kline"); |
| 151 |
> |
me.name, source_p->name, "dline"); |
| 152 |
|
return; |
| 153 |
|
} |
| 154 |
|
|
| 160 |
|
{ |
| 161 |
|
if (HasID(source_p)) |
| 162 |
|
{ |
| 163 |
< |
sendto_server(NULL, NULL, CAP_DLN|CAP_TS6, NOCAPS, |
| 163 |
> |
sendto_server(NULL, CAP_DLN|CAP_TS6, NOCAPS, |
| 164 |
|
":%s DLINE %s %lu %s :%s", |
| 165 |
|
source_p->id, target_server, (unsigned long)tkline_time, |
| 166 |
|
dlhost, reason); |
| 167 |
< |
sendto_server(NULL, NULL, CAP_DLN, CAP_TS6, |
| 167 |
> |
sendto_server(NULL, CAP_DLN, CAP_TS6, |
| 168 |
|
":%s DLINE %s %lu %s :%s", |
| 169 |
|
source_p->name, target_server, (unsigned long)tkline_time, |
| 170 |
|
dlhost, reason); |
| 171 |
|
} |
| 172 |
|
else |
| 173 |
< |
sendto_server(NULL, NULL, CAP_DLN, NOCAPS, |
| 173 |
> |
sendto_server(NULL, CAP_DLN, NOCAPS, |
| 174 |
|
":%s DLINE %s %lu %s :%s", |
| 175 |
|
source_p->name, target_server, (unsigned long)tkline_time, |
| 176 |
|
dlhost, reason); |
| 468 |
|
sendto_one(source_p, |
| 469 |
|
":%s NOTICE %s :Un-Dlined [%s] from temporary D-Lines", |
| 470 |
|
me.name, source_p->name, addr); |
| 471 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, |
| 471 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
| 472 |
|
"%s has removed the temporary D-Line for: [%s]", |
| 473 |
|
get_oper_name(source_p), addr); |
| 474 |
|
ilog(LOG_TYPE_DLINE, "%s removed temporary D-Line for [%s]", |
| 480 |
|
{ |
| 481 |
|
sendto_one(source_p, ":%s NOTICE %s :D-Line for [%s] is removed", |
| 482 |
|
me.name, source_p->name, addr); |
| 483 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, |
| 483 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
| 484 |
|
"%s has removed the D-Line for: [%s]", |
| 485 |
|
get_oper_name(source_p), addr); |
| 486 |
|
ilog(LOG_TYPE_DLINE, "%s removed D-Line for [%s]", |
| 515 |
|
sendto_one(source_p, |
| 516 |
|
":%s NOTICE %s :Un-Dlined [%s] from temporary D-Lines", |
| 517 |
|
me.name, source_p->name, addr); |
| 518 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, |
| 518 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
| 519 |
|
"%s has removed the temporary D-Line for: [%s]", |
| 520 |
|
get_oper_name(source_p), addr); |
| 521 |
|
ilog(LOG_TYPE_DLINE, "%s removed temporary D-Line for [%s]", |
| 527 |
|
{ |
| 528 |
|
sendto_one(source_p, ":%s NOTICE %s :D-Line for [%s] is removed", |
| 529 |
|
me.name, source_p->name, addr); |
| 530 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, |
| 530 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
| 531 |
|
"%s has removed the D-Line for: [%s]", |
| 532 |
|
get_oper_name(source_p), addr); |
| 533 |
|
ilog(LOG_TYPE_DLINE, "%s removed D-Line for [%s]", |