For remote client, we need to set username to cli_username(sptr).
{
assert(cptr == sptr);
+ /* Have to set up "realusername" */
+ ircd_strncpy(user->realusername, user->username, USERLEN);
+
Count_unknownbecomesclient(sptr, UserStats);
if (MyConnect(sptr) && feature_bool(FEAT_AUTOINVISIBLE))
else {
struct Client *acptr = user->server;
+ ircd_strncpy(user->username, cli_username(sptr), USERLEN);
Count_newremoteclient(UserStats, acptr);
if (cli_from(acptr) != cli_from(sptr))