diff --git a/ircd/s_user.c b/ircd/s_user.c index 77577bf1..ad95ff54 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -1500,7 +1500,9 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use target_p->username, target_p->host); } - rb_strlcpy(target_p->username, user, sizeof target_p->username); + if (user != target_p->username) + rb_strlcpy(target_p->username, user, sizeof target_p->username); + rb_strlcpy(target_p->host, host, sizeof target_p->host); if (changed)