From 45ed8835846fc4749f4eb058ddc409184a661ee4 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 25 Jun 2011 15:56:22 +0200 Subject: [PATCH] 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. --- modules/m_services.c | 5 +++++ modules/m_signon.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/modules/m_services.c b/modules/m_services.c index 1797aac8..26cf3575 100644 --- a/modules/m_services.c +++ b/modules/m_services.c @@ -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); diff --git a/modules/m_signon.c b/modules/m_signon.c index f28021ff..6741cf9e 100644 --- a/modules/m_signon.c +++ b/modules/m_signon.c @@ -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);