Readd some oper notices.
This commit is contained in:
parent
58af12a20d
commit
d63447bfe7
|
@ -341,6 +341,24 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
|
||||||
|
|
||||||
bandb_add(BANDB_DLINE, source_p, aconf->host, NULL,
|
bandb_add(BANDB_DLINE, source_p, aconf->host, NULL,
|
||||||
reason, EmptyString(aconf->spasswd) ? NULL : aconf->spasswd, 0);
|
reason, EmptyString(aconf->spasswd) ? NULL : aconf->spasswd, 0);
|
||||||
|
|
||||||
|
if(EmptyString(oper_reason))
|
||||||
|
{
|
||||||
|
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||||
|
"%s added D-Line for [%s] [%s]",
|
||||||
|
get_oper_name(source_p), aconf->host, reason);
|
||||||
|
ilog(L_KLINE, "D %s 0 %s %s",
|
||||||
|
get_oper_name(source_p), aconf->host, reason);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||||
|
"%s added D-Line for [%s] [%s|%s]",
|
||||||
|
get_oper_name(source_p), aconf->host, reason, oper_reason);
|
||||||
|
ilog(L_KLINE, "D %s 0 %s %s|%s",
|
||||||
|
get_oper_name(source_p),
|
||||||
|
aconf->host, reason, oper_reason);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -485,6 +485,28 @@ apply_kline(struct Client *source_p, struct ConfItem *aconf,
|
||||||
add_conf_by_address(aconf->host, CONF_KILL, aconf->user, NULL, aconf);
|
add_conf_by_address(aconf->host, CONF_KILL, aconf->user, NULL, aconf);
|
||||||
bandb_add(BANDB_KLINE, source_p, aconf->user, aconf->host,
|
bandb_add(BANDB_KLINE, source_p, aconf->user, aconf->host,
|
||||||
reason, EmptyString(oper_reason) ? NULL : oper_reason, 0);
|
reason, EmptyString(oper_reason) ? NULL : oper_reason, 0);
|
||||||
|
|
||||||
|
/* no oper reason.. */
|
||||||
|
if(EmptyString(oper_reason))
|
||||||
|
{
|
||||||
|
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||||
|
"%s added K-Line for [%s@%s] [%s]",
|
||||||
|
get_oper_name(source_p), aconf->user, aconf->host, reason);
|
||||||
|
ilog(L_KLINE, "K %s 0 %s %s %s",
|
||||||
|
get_oper_name(source_p), aconf->user, aconf->host, reason);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||||
|
"%s added K-Line for [%s@%s] [%s|%s]",
|
||||||
|
get_oper_name(source_p), aconf->user, aconf->host,
|
||||||
|
reason, oper_reason);
|
||||||
|
ilog(L_KLINE, "K %s 0 %s %s %s|%s",
|
||||||
|
get_oper_name(source_p), aconf->user, aconf->host, reason, oper_reason);
|
||||||
|
}
|
||||||
|
|
||||||
|
sendto_one_notice(source_p, ":Added K-Line [%s@%s]",
|
||||||
|
aconf->user, aconf->host);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* apply_tkline()
|
/* apply_tkline()
|
||||||
|
|
Loading…
Reference in New Issue