X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/143b6cc1e4a8faa8181301bf43ddafecab3237cc..70c6c150f6f669425d7929e3e5229f3b12368d75:/extensions/m_sendbans.c diff --git a/extensions/m_sendbans.c b/extensions/m_sendbans.c index f8829a0..a623cf1 100644 --- a/extensions/m_sendbans.c +++ b/extensions/m_sendbans.c @@ -126,8 +126,9 @@ static int mo_sendbans(struct Client *client_p, struct Client *source_p, int par } sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, - "%s is sending resvs and xlines to %s", - get_oper_name(source_p), target); + "%s!%s@%s is sending resvs and xlines to %s", + source_p->name, source_p->username, source_p->host, + target); RB_DLINK_FOREACH(ptr, resv_conf_list.head) { @@ -137,7 +138,7 @@ static int mo_sendbans(struct Client *client_p, struct Client *source_p, int par sendto_match_servs(source_p, target, CAP_ENCAP, NOCAPS, "ENCAP %s RESV 0 %s 0 :%s", - target, aconf->name, aconf->passwd); + target, aconf->host, aconf->passwd); } HASH_WALK(i, R_MAX, ptr, resvTable) @@ -148,7 +149,7 @@ static int mo_sendbans(struct Client *client_p, struct Client *source_p, int par sendto_match_servs(source_p, target, CAP_ENCAP, NOCAPS, "ENCAP %s RESV 0 %s 0 :%s", - target, aconf->name, aconf->passwd); + target, aconf->host, aconf->passwd); } HASH_WALK_END @@ -157,11 +158,11 @@ static int mo_sendbans(struct Client *client_p, struct Client *source_p, int par aconf = ptr->data; if (aconf->hold) continue; - mask2 = expand_xline(aconf->name); + mask2 = expand_xline(aconf->host); if (mask2 == NULL) { sendto_one_notice(source_p, ":Skipping xline [%s]", - aconf->name); + aconf->host); continue; } sendto_match_servs(source_p, target,