From ae4ce45f2e8e928ad5b9df6c69041124b8366cca Mon Sep 17 00:00:00 2001 From: Keith Buck Date: Sun, 25 Mar 2012 01:59:20 +0000 Subject: [PATCH] change_nick_user_host: Send nick change notices to SNO_NCHANGE opers when change_nick_user_host is called to only change nick. --- src/s_user.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/s_user.c b/src/s_user.c index 8892a9e68..89b2a9f53 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -1477,12 +1477,19 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use if(MyClient(target_p) && changed_case) sendto_one(target_p, ":%s!%s@%s NICK %s", target_p->name, target_p->username, target_p->host, nick); + + /* TODO: send some snotes to SNO_NCHANGE/SNO_CCONN/SNO_CCONNEXT? */ } else if(changed_case) { sendto_common_channels_local(target_p, NOCAPS, ":%s!%s@%s NICK :%s", target_p->name, target_p->username, target_p->host, nick); + + sendto_realops_snomask(SNO_NCHANGE, L_ALL, + "Nick change: From %s to %s [%s@%s]", + target_p->name, nick, + target_p->username, target_p->host); } rb_strlcpy(target_p->username, user, sizeof target_p->username);