+
+ /* 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);