rsfnc/svslogin: Add server notices for kills.
When we broadcast a KILL message, this generates server notices on all other servers (assuming the target user exists). Therefore, we should also send a notice to our local opers.
This commit is contained in:
parent
2b843a5bdd
commit
45ed883584
2 changed files with 8 additions and 0 deletions
|
@ -196,8 +196,13 @@ me_rsfnc(struct Client *client_p, struct Client *source_p,
|
|||
exist_p->flags |= FLAGS_KILLED;
|
||||
/* Do not send kills to servers for unknowns -- jilles */
|
||||
if(IsClient(exist_p))
|
||||
{
|
||||
kill_client_serv_butone(NULL, exist_p, "%s (Nickname regained by services)",
|
||||
me.name);
|
||||
sendto_realops_snomask(SNO_SKILL, L_ALL,
|
||||
"Nick collision due to services forced nick change on %s",
|
||||
parv[2]);
|
||||
}
|
||||
|
||||
rb_snprintf(buf, sizeof(buf), "Killed (%s (Nickname regained by services))",
|
||||
me.name);
|
||||
|
|
|
@ -213,6 +213,9 @@ me_svslogin(struct Client *client_p, struct Client *source_p,
|
|||
exist_p->flags |= FLAGS_KILLED;
|
||||
kill_client_serv_butone(NULL, exist_p, "%s (Nickname regained by services)",
|
||||
me.name);
|
||||
sendto_realops_snomask(SNO_SKILL, L_ALL,
|
||||
"Nick collision due to SVSLOGIN on %s",
|
||||
nick);
|
||||
|
||||
rb_snprintf(buf, sizeof(buf), "Killed (%s (Nickname regained by services))",
|
||||
me.name);
|
||||
|
|
Loading…
Reference in a new issue