change_nick_user_host: Only send +n snotes about local clients.

This commit is contained in:
Jilles Tjoelker 2012-03-27 00:46:50 +02:00
parent bb73e588bc
commit 34616c3be1

View file

@ -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->name, target_p->username,
target_p->host, nick); target_p->host, nick);
sendto_realops_snomask(SNO_NCHANGE, L_ALL, if(MyConnect(target_p))
"Nick change: From %s to %s [%s@%s]", sendto_realops_snomask(SNO_NCHANGE, L_ALL,
target_p->name, nick, "Nick change: From %s to %s [%s@%s]",
target_p->username, target_p->host); target_p->name, nick,
target_p->username, target_p->host);
} }
rb_strlcpy(target_p->username, user, sizeof target_p->username); rb_strlcpy(target_p->username, user, sizeof target_p->username);