Make sno_globalkline work for servers without kline_reason, but only for temps.
This commit is contained in:
parent
d61a1c7e13
commit
fb47b36663
1 changed files with 12 additions and 0 deletions
|
@ -48,4 +48,16 @@ h_gla_client_exit(hook_data_client_exit *hdata)
|
||||||
"K/DLINE active for %s[%s@%s]",
|
"K/DLINE active for %s[%s@%s]",
|
||||||
source_p->name, source_p->username, source_p->host);
|
source_p->name, source_p->username, source_p->host);
|
||||||
}
|
}
|
||||||
|
else if (!strncmp(hdata->comment, "Temporary K-line ", 17))
|
||||||
|
{
|
||||||
|
sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
|
||||||
|
"K/DLINE active for %s[%s@%s]",
|
||||||
|
source_p->name, source_p->username, source_p->host);
|
||||||
|
}
|
||||||
|
else if (!strncmp(hdata->comment, "Temporary D-line ", 17))
|
||||||
|
{
|
||||||
|
sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
|
||||||
|
"K/DLINE active for %s[%s@%s]",
|
||||||
|
source_p->name, source_p->username, source_p->host);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue