From: pk910 Date: Sat, 23 Jul 2011 18:33:55 +0000 (+0200) Subject: copy fakeuser also into Client struct X-Git-Tag: WGN5~8 X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=03969ce638dfc83cc1cc36a2c2211812b2581afe copy fakeuser also into Client struct --- diff --git a/ircd/s_user.c b/ircd/s_user.c index 9827490..c10eb72 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -1022,8 +1022,11 @@ hide_hostmask(struct Client *cptr, unsigned int flag) /* spoof also the username if username is passed */ if(IsFakeIdent(cptr)) { - ircd_strncpy(cli_user(cptr)->username, cli_user(cptr)->fakeuser, USERLEN); - /* ok, the client is now fully hidden, so let them know -- hikari */ + if(strncmp(cli_user(cptr)->username, cli_user(cptr)->fakeuser, USERLEN) != 0) { + ircd_strncpy(cli_username(cptr), cli_user(cptr)->fakeuser, USERLEN); + ircd_strncpy(cli_user(cptr)->username, cli_user(cptr)->fakeuser, USERLEN); + } + /* ok, the client is now fully hidden, so let them know -- hikari */ if (MyConnect(cptr)) send_reply(cptr, RPL_HOSTUSERHIDDEN, cli_user(cptr)->username, cli_user(cptr)->host); } else {