From 34616c3be1aa93b0673bd36a6e01d783ad566aa9 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 27 Mar 2012 00:46:50 +0200 Subject: [PATCH] change_nick_user_host: Only send +n snotes about local clients. --- src/s_user.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/s_user.c b/src/s_user.c index 89b2a9f53..e6fc1151e 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -1486,10 +1486,11 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use 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); + if(MyConnect(target_p)) + 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);