Skip to content

Commit

Permalink
Merge pull request #244 from DALnet/userhost-fix
Browse files Browse the repository at this point in the history
Fix USERHOST not to reveal the user's real hostname to IRC Operators
  • Loading branch information
eaescob authored Oct 4, 2024
2 parents 1d4a374 + 36dda85 commit 5fd0821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/s_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -3188,7 +3188,7 @@ m_userhost(aClient *cptr, aClient *sptr, int parc, char *parv[])
(acptr->user->away) ? '-' : '+',
acptr->user->username,
#ifdef USER_HOSTMASKING
(IsUmodeH(acptr) && sptr!=acptr && !IsAnOper(sptr))?acptr->user->mhost:
(IsUmodeH(acptr) && sptr!=acptr)?acptr->user->mhost:
#endif
acptr->user->host);
}
Expand Down

0 comments on commit 5fd0821

Please sign in to comment.